-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1858 from multiversx/multi-value-encoded-counted
MultiValueEncodedCounted
- Loading branch information
Showing
10 changed files
with
461 additions
and
24 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
contracts/feature-tests/basic-features/scenarios/echo_varags_vec_with_counted.scen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"gasSchedule": "v3", | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"sc:basic-features": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"address:an_account": { | ||
"nonce": "0", | ||
"balance": "0" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:an_account", | ||
"to": "sc:basic-features", | ||
"function": "echo_varags_vec_with_counted", | ||
"arguments": [ | ||
"str:alice", | ||
"2", | ||
"101", | ||
"102", | ||
"str:bob", | ||
"0" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [ | ||
"str:alice", | ||
"2", | ||
"101", | ||
"102", | ||
"str:bob", | ||
"0" | ||
], | ||
"status": "", | ||
"logs": "*", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
} | ||
] | ||
} |
68 changes: 68 additions & 0 deletions
68
...racts/feature-tests/basic-features/scenarios/echo_varags_vec_with_counted_pairs.scen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"gasSchedule": "v3", | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"sc:basic-features": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"address:an_account": { | ||
"nonce": "0", | ||
"balance": "0" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:an_account", | ||
"to": "sc:basic-features", | ||
"function": "echo_varags_vec_with_counted_pairs", | ||
"arguments": [ | ||
"str:alice", | ||
"1", | ||
"100", | ||
"address:a100", | ||
"str:bob", | ||
"0", | ||
"str:charlie", | ||
"3", | ||
"300", | ||
"address:a300", | ||
"301", | ||
"address:a301", | ||
"302", | ||
"address:a302" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [ | ||
"str:alice", | ||
"1", | ||
"100", | ||
"address:a100", | ||
"str:bob", | ||
"0", | ||
"str:charlie", | ||
"3", | ||
"300", | ||
"address:a300", | ||
"301", | ||
"address:a301", | ||
"302", | ||
"address:a302" | ||
], | ||
"status": "", | ||
"logs": "*", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.