Skip to content

Commit

Permalink
Revert "Correcct the balance of the contract address upon creation, n…
Browse files Browse the repository at this point in the history
…oting th…" (#2123)

This reverts commit e78617c.
  • Loading branch information
JamesHinshelwood authored Jan 10, 2025
1 parent 0340a96 commit b80319b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zilliqa/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b80319b

Please sign in to comment.