Skip to content

Commit

Permalink
upgrade from contract test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Nov 6, 2023
1 parent 8149d9c commit 52ce940
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@
"function": "upgrade_vault_from_source",
"arguments": [
"sc:child",
"sc:forwarder"
"sc:child"
],
"gasLimit": "500,000,000",
"gasPrice": "0"
},
"expect": {
"out": []
"out": [],
"status": ""
}
},
{
"step": "checkState",
"accounts": {
"sc:child": {
"code": "file:../forwarder/output/forwarder.wasm"
"code": "file:../vault/output/vault.wasm"
},
"+": ""
}
Expand All @@ -58,9 +59,7 @@
"gasPrice": "0"
},
"expect": {
"out": [
"str:arg"
],
"out": [],
"logs": [
{
"address": "sc:forwarder",
Expand All @@ -77,6 +76,16 @@
"str:arg"
]
},
{
"address": "sc:child",
"endpoint": "str:upgradeContract",
"topics": [
"str:upgraded"
],
"data": [
""
]
},
{
"address": "sc:child",
"endpoint": "str:transferValueOnly",
Expand All @@ -88,6 +97,7 @@
"str:AsyncCallback",
"str:callBack",
"0x00",
"str:upgraded",
"str:arg"
]
}
Expand Down

0 comments on commit 52ce940

Please sign in to comment.