-
Notifications
You must be signed in to change notification settings - Fork 99
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 #1687 from multiversx/test-storage-mapp-from-addr
storage_mapper_from_addr - test
- Loading branch information
Showing
10 changed files
with
148 additions
and
13 deletions.
There are no files selected for viewing
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
90 changes: 90 additions & 0 deletions
90
.../feature-tests/basic-features/scenarios/storage_mapper_get_at_address_extra_key.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,90 @@ | ||
{ | ||
"name": "storage mapper get at address", | ||
"gasSchedule": "v3", | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"sc:basic-features": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"sc:with-storage": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"address:an_account": { | ||
"nonce": "0", | ||
"balance": "0" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "set single_value_with_keys", | ||
"tx": { | ||
"from": "address:an_account", | ||
"to": "sc:with-storage", | ||
"function": "set_single_value_mapper_with_key", | ||
"arguments": [ | ||
"5", | ||
"str:to-read" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "", | ||
"logs": "*", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
}, | ||
{ | ||
"step": "scQuery", | ||
"id": "check single_value_with_keys", | ||
"tx": { | ||
"to": "sc:basic-features", | ||
"function": "get_value_from_address_with_keys", | ||
"arguments": [ | ||
"sc:with-storage", | ||
"5" | ||
] | ||
}, | ||
"expect": { | ||
"out": [ | ||
"str:to-read" | ||
], | ||
"status": "", | ||
"logs": "*", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
}, | ||
{ | ||
"step": "checkState", | ||
"accounts": { | ||
"sc:basic-features": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"sc:with-storage": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": { | ||
"str:single_value_mapper_with_key|0x00000005": "str:to-read" | ||
}, | ||
"code": "mxsc:../output/basic-features.mxsc.json" | ||
}, | ||
"address:an_account": { | ||
"nonce": "*", | ||
"balance": "0" | ||
} | ||
} | ||
} | ||
] | ||
} |
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
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