From 68c41a40b0c05ed1ea251b4d768561905f75bd64 Mon Sep 17 00:00:00 2001 From: Alin Cruceat Date: Tue, 12 Sep 2023 19:31:19 +0300 Subject: [PATCH] update test --- .../scenarios/fund-egld-and-esdt.scen.json | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/contracts/examples/digital-cash/scenarios/fund-egld-and-esdt.scen.json b/contracts/examples/digital-cash/scenarios/fund-egld-and-esdt.scen.json index 9c0947c21d..edfe53decd 100644 --- a/contracts/examples/digital-cash/scenarios/fund-egld-and-esdt.scen.json +++ b/contracts/examples/digital-cash/scenarios/fund-egld-and-esdt.scen.json @@ -249,7 +249,7 @@ "step": "scCall", "id": "fund-fail-2", "tx": { - "from": "address:acc3", + "from": "address:acc2", "to": "sc:the_digital_cash_contract", "esdtValue": [ { @@ -281,6 +281,42 @@ "refund": "*" } }, + { + "step": "scCall", + "id": "fund-fail-3", + "tx": { + "from": "address:acc3", + "to": "sc:the_digital_cash_contract", + "esdtValue": [ + { + "tokenIdentifier": "str:CASHTOKEN-112233", + "value": "50" + }, + { + "tokenIdentifier": "str:CASHTOKEN-445566", + "value": "50" + }, + { + "tokenIdentifier": "str:CASHTOKEN-778899", + "value": "50" + } + ], + "function": "fund", + "arguments": [ + "0x487bd4010b50c24a02018345fe5171edf4182e6294325382c75ef4c4409f01bd", + "u64:100" + ], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "out": [], + "status": "4", + "message": "str:invalid depositor", + "gas": "*", + "refund": "*" + } + }, { "step": "scCall", "id": "deposit-fees-3",