From 1a91887d488c323567522f44a7ea7a4709c3907f Mon Sep 17 00:00:00 2001 From: BiancaIalangi Date: Mon, 4 Mar 2024 16:51:21 +0200 Subject: [PATCH] scUpgrade step in mandos --- .../scenarios/simple_upgrade.scen.json | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test/features/composability/scenarios/simple_upgrade.scen.json diff --git a/test/features/composability/scenarios/simple_upgrade.scen.json b/test/features/composability/scenarios/simple_upgrade.scen.json new file mode 100644 index 000000000..a98d5549d --- /dev/null +++ b/test/features/composability/scenarios/simple_upgrade.scen.json @@ -0,0 +1,46 @@ +{ + "gasSchedule": "v3", + "steps": [ + { + "step": "setState", + "accounts": { + "address:a_user": { + "nonce": "0", + "balance": "1000" + }, + "sc:forwarder": { + "nonce": "0", + "balance": "0", + "code": "mxsc:../forwarder-raw/output/forwarder-raw.mxsc.json", + "codeMetadata": "0x0502" + } + } + }, + { + "step": "scUpgrade", + "id": "1", + "tx": { + "from": "address:a_user", + "to": "sc:forwarder", + "contractCode": "mxsc:../vault/output/vault.mxsc.json", + "gasLimit": "50,000,000", + "gasPrice": "0" + } + }, + { + "step": "checkState", + "accounts": { + "address:a_user": { + "nonce": "*", + "balance": "1000", + "storage": {}, + "code": "" + }, + "sc:forwarder": { + "code": "mxsc:../vault/output/vault.mxsc.json" + } + } + } + ] +} +