From 12ea6db66e0e39a2e29b29ea5c8983c340ffb5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Fri, 19 Jan 2024 16:26:14 +0200 Subject: [PATCH] Test fix --- ...nsfer_fail_mint_burn_not_allowed.scen.json | 76 +++---------------- 1 file changed, 9 insertions(+), 67 deletions(-) diff --git a/multi-transfer-esdt/scenarios/transfer_fail_mint_burn_not_allowed.scen.json b/multi-transfer-esdt/scenarios/transfer_fail_mint_burn_not_allowed.scen.json index 831c3e52..a4db0d9f 100644 --- a/multi-transfer-esdt/scenarios/transfer_fail_mint_burn_not_allowed.scen.json +++ b/multi-transfer-esdt/scenarios/transfer_fail_mint_burn_not_allowed.scen.json @@ -26,10 +26,6 @@ "refund": "*" } }, - { - "step": "dumpState", - "comment": "all accounts beginning" - }, { "step": "scCall", "txId": "transfer-ok", @@ -54,69 +50,15 @@ } }, { - "step": "checkState", - "accounts": { - "address:owner": { - "nonce": "11", - "balance": "0", - "storage": {} - }, - "address:user1": { - "nonce": "0", - "balance": "0", - "esdt": { - "str:BRIDGE-123456": { - "balance": "100,200" - } - }, - "storage": {} - }, - "address:user2": { - "nonce": "0", - "balance": "0", - "storage": {} - }, - "sc:multi_transfer_esdt": { - "code": "file:../output/multi-transfer-esdt.wasm", - "nonce": "0", - "balance": "0", - "storage": { - "str:firstBatchId": "1", - "str:lastBatchId": "1", - "str:bridgeProxyContractAddress": "sc:bridge-proxy", - "str:maxTxBatchSize": "10", - "str:maxTxBatchBlockDuration": "3600", - "str:esdtSafeContractAddress": "sc:esdt-safe" - } - }, - "sc:bridge-proxy": { - "code": "file:../../bridge-proxy/output/bridge-proxy.wasm", - "nonce": "0", - "balance": "0", - "storage": "*" - }, - "sc:esdt-safe": { - "code": "file:../../esdt-safe/output/esdt-safe.wasm", - "nonce": "0", - "balance": "0", - "esdt": { - "str:BRIDGE-123456": { - "balance": "899,800", - "roles": [ - "ESDTRoleLocalMint", - "ESDTRoleLocalBurn" - ] - }, - "str:WRAPPED-123456": { - "balance": "1,000,000", - "roles": [ - "ESDTRoleLocalMint", - "ESDTRoleLocalBurn" - ] - } - }, - "storage": "*" - } + "step": "scQuery", + "txId": "get-current-refund-tx-batch", + "tx": { + "to": "sc:multi_transfer_esdt", + "function": "getFirstBatchAnyStatus", + "arguments": [] + }, + "expect": { + "out": "*" } } ]