Skip to content

Commit

Permalink
account creation check
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Oct 11, 2021
1 parent 33bb001 commit d9aadbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module AccountScripts {
);

// Check the account exists and the balance is 0
assert(DiemAccount::balance<GAS>(new_account_address) == 0, 01);
assert(DiemAccount::balance<GAS>(new_account_address) > 0, 01);
}

public(script) fun create_acc_val(
Expand Down

0 comments on commit d9aadbc

Please sign in to comment.