{ "name": "wrap egld", "gasSchedule": "v4", "steps": [ { "step": "setState", "accounts": { "address:user": { "nonce": "0", "balance": "1000" }, "sc:egld_esdt_swap": { "nonce": "0", "balance": "0", "esdt": { "str:EGLD-abcdef": { "instances": [ { "nonce": "", "balance": "1" } ], "roles": [ "ESDTRoleLocalMint", "ESDTRoleLocalBurn" ] } }, "storage": { "str:wrappedEgldTokenId": "str:EGLD-abcdef" }, "code": "mxsc:../output/multiversx-wegld-swap-sc.mxsc.json" } } }, { "step": "scCall", "id": "wrap-egld", "tx": { "from": "address:user", "to": "sc:egld_esdt_swap", "egldValue": "500", "function": "wrapEgld", "arguments": [], "gasLimit": "5,000,000", "gasPrice": "0" }, "expect": { "out": [ "nested:str:EGLD-abcdef|u64:0|biguint:500" ], "status": "0", "message": "", "gas": "*", "refund": "*" } }, { "step": "checkState", "accounts": { "address:user": { "nonce": "1", "balance": "500", "esdt": { "str:EGLD-abcdef": "500" }, "storage": {} }, "sc:egld_esdt_swap": { "nonce": "0", "balance": "500", "esdt": { "str:EGLD-abcdef": { "instances": [ { "nonce": "", "balance": "1" } ], "roles": [ "ESDTRoleLocalMint", "ESDTRoleLocalBurn" ] } }, "storage": { "str:wrappedEgldTokenId": "str:EGLD-abcdef" }, "code": "mxsc:../output/multiversx-wegld-swap-sc.mxsc.json" } } } ] }