From b80319b6c3fa64a9ba380426aa9de4bf8e3a35cd Mon Sep 17 00:00:00 2001 From: James Hinshelwood Date: Fri, 10 Jan 2025 09:11:17 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20"Correcct=20the=20balance=20of=20the?= =?UTF-8?q?=20contract=20address=20upon=20creation,=20noting=20th=E2=80=A6?= =?UTF-8?q?"=20(#2123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e78617c2cf41dd3b9caff25c0c6c34b4f7dac0f4. --- zilliqa/src/exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zilliqa/src/exec.rs b/zilliqa/src/exec.rs index 807555500..26294ee77 100644 --- a/zilliqa/src/exec.rs +++ b/zilliqa/src/exec.rs @@ -1627,7 +1627,7 @@ fn scilla_create( let transitions = contract_info.transitions; let account = state.load_account(contract_address)?; - account.account.balance += txn.amount.get(); + account.account.balance = txn.amount.get(); account.account.code = Code::Scilla { code: txn.code.clone(), init_data,