near_sdk_sim::lazy_static_include::lazy_static_include_bytes! {
AVRIT_WASM_BYTES => "res/avrit.wasm"
}
const CONTRACT_ID: &str = "avrit";
fn deploy_avrit() -> (UserAccount, UserAccount, ContractAccount<Contract>) {
let root = init_simulator(None);
let owner = root.create_user("alice".to_string(), to_yocto("10000"));
let avrit_contract = deploy!(
contract: Contract,
contract_id: CONTRACT_ID.to_string(),
bytes: &AVRIT_WASM_BYTES,
signer_account: root,
init_method: new(owner.valid_account_id().as_ref().to_string(), 10000000000.into())
);
(root, owner, avrit_contract)
}
#[test]
pub fn test_ft_transfer() {
let (root, owner, avrit_contract) = deploy_avrit();
}
以下代码报错:
帐户 avrit 没有足够的余额来支付存储空间,需要有 109075000000000000000000 yoctoNEAR),