From d9aadbc6317cbdc5ef82956261b0de8f2d2e6591 Mon Sep 17 00:00:00 2001 From: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com> Date: Mon, 11 Oct 2021 19:24:19 +0000 Subject: [PATCH] account creation check --- .../modules/0L_transaction_scripts/ol_account.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/diem-framework/modules/0L_transaction_scripts/ol_account.move b/language/diem-framework/modules/0L_transaction_scripts/ol_account.move index 0b3a2e2192..978b520ceb 100644 --- a/language/diem-framework/modules/0L_transaction_scripts/ol_account.move +++ b/language/diem-framework/modules/0L_transaction_scripts/ol_account.move @@ -24,7 +24,7 @@ module AccountScripts { ); // Check the account exists and the balance is 0 - assert(DiemAccount::balance(new_account_address) == 0, 01); + assert(DiemAccount::balance(new_account_address) > 0, 01); } public(script) fun create_acc_val(