Skip to content

Commit

Permalink
Update paymaster test
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Nov 23, 2023
1 parent cfe346f commit cb9d6b1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
Binary file modified test/paymaster/output/paymaster.wasm
Binary file not shown.
43 changes: 35 additions & 8 deletions test/paymaster/scenarios/test_forward_call_wegld.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@
"sc:wegld": {
"nonce": "0",
"balance": "100,000,000",
"esdt": {
"str:WEGLD-123456": {
"instances": [
{
"nonce": "",
"balance": "0"
}
],
"roles": [
"ESDTRoleLocalMint",
"ESDTRoleLocalBurn"
]
}
},
"storage": {
"str:wrappedEgldTokenId": "str:WEGLD-123456"
},
Expand Down Expand Up @@ -72,7 +86,7 @@
},
{
"step": "scCall",
"id": "",
"id": "paymaster-forward-execution",
"tx": {
"from": "address:user",
"to": "sc:paymaster",
Expand All @@ -90,14 +104,16 @@
"arguments": [
"0x72656c617965725f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f",
"0x000000000000000000007765676c645f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f",
"0x756e77726170"
"0x756e7772617045676c64"
],
"gasLimit": "500,000,000",
"gasLimit": "100,000,000",
"gasPrice": ""
},
"expect": {
"out": [],
"status": "0"
"status": "0",
"gas": "*",
"refund": "*"
}
},
{
Expand Down Expand Up @@ -126,9 +142,9 @@
"sc:paymaster": {
"esdt": {
"str:FEE-123456": "0",
"str:WEGLD-123456": "100,000,000"
"str:WEGLD-123456": "0"
},
"balance": "0",
"balance": "100,000,000",
"storage": "*",
"code": "*",
"owner": "address:owner",
Expand All @@ -137,9 +153,20 @@
"sc:wegld": {
"esdt": {
"str:FEE-123456": "0",
"str:WEGLD-123456": "0"
"str:WEGLD-123456": {
"instances": [
{
"nonce": "",
"balance": "0"
}
],
"roles": [
"ESDTRoleLocalMint",
"ESDTRoleLocalBurn"
]
}
},
"balance": "100,000,000",
"balance": "0",
"storage": "*",
"owner": "*",
"nonce": "0",
Expand Down

0 comments on commit cb9d6b1

Please sign in to comment.