Skip to content

Commit

Permalink
fix .scen.json test
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Nov 29, 2024
1 parent 10f2939 commit 5bfad3b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,30 @@
"steps": [
{
"step": "setState",
"newTokenIdentifiers": [
"TEST-6bb410"
]
},
{
"step": "scCall",
"id": "",
"tx": {
"from": "bech32:erd1y3z4vsn2m026glevhsqpwrc5w4v0xzr2qmukc5qde39jnzze324qf4e2r4",
"to": "bech32:erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u",
"egldValue": "50000000000000000",
"function": "issue",
"arguments": [
"0x74657374",
"0x54455354",
"0x64",
"0x",
"0x63616e467265657a65",
"0x74727565",
"0x63616e57697065",
"0x74727565",
"0x63616e5061757365",
"0x74727565",
"0x63616e4d696e74",
"0x74727565",
"0x63616e4275726e",
"0x74727565",
"0x63616e4368616e67654f776e6572",
"0x74727565",
"0x63616e55706772616465",
"0x74727565",
"0x63616e4164645370656369616c526f6c6573",
"0x74727565"
],
"gasLimit": "100000000"
},
"expect": {
"out": [],
"status": "0"
"accounts": {
"bech32:erd1y3z4vsn2m026glevhsqpwrc5w4v0xzr2qmukc5qde39jnzze324qf4e2r4": {
"nonce": "0",
"balance": "10",
"esdt": {
"str:TEST-6bb410": {
"instances": [
{
"nonce": "0",
"balance": "100",
"royalties": "0",
"attributes": "0x"
}
]
}
},
"developerRewards": "0"
},
"bech32:erd1uv40ahysflse896x4ktnh6ecx43u7cmy9wnxnvcyp7deg299a4sq6vaywa": {
"nonce": "0",
"balance": "0",
"esdt": {},
"developerRewards": "0"
}
}
},
{
Expand All @@ -52,7 +37,7 @@
"esdtValue": [
{
"tokenIdentifier": "0x45474c442d303030303030",
"value": "50000000000000000"
"value": "4"
},
{
"tokenIdentifier": "0x544553542d366262343130",
Expand All @@ -61,6 +46,27 @@
],
"gasLimit": "5,000,000"
}
},
{
"step": "checkState",
"accounts": {
"bech32:erd1y3z4vsn2m026glevhsqpwrc5w4v0xzr2qmukc5qde39jnzze324qf4e2r4": {
"nonce": "*",
"balance": "6",
"esdt": {
"str:TEST-6bb410": "90"
},
"storage": {}
},
"bech32:erd1uv40ahysflse896x4ktnh6ecx43u7cmy9wnxnvcyp7deg299a4sq6vaywa": {
"nonce": "*",
"balance": "4",
"esdt": {
"str:TEST-6bb410": "10"
},
"storage": {}
}
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn echo_u_64_rs() {

#[test]
#[ignore = "not supported yet"]
fn multi_transfer_with_egld_go() {
fn multi_transfer_with_egld_rs() {
world().run("scenarios/multi_transfer_with_egld.scen.json");
}

Expand Down

0 comments on commit 5bfad3b

Please sign in to comment.