Skip to content

Commit

Permalink
Fixed error name words
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Mar 19, 2024
1 parent eee7465 commit 433d429
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ script {
use StarcoinFramework::Account;

fun burn_illegal_tokens(sender: signer) {
let illegal_token = Account::withdraw_illige_token<STC>(&sender, @alice);
let illegal_token = Account::withdraw_illegal_token<STC>(&sender, @alice);
STC::burn(illegal_token);
assert!(Account::balance<STC>(@alice) == 0, 10030);
}
Expand All @@ -105,7 +105,7 @@ script {
use StarcoinFramework::Account;

fun bob_call_withdraw_illegal_token_failed(sender: signer) {
let illegal_token = Account::withdraw_illige_token<STC>(&sender, @alice);
let illegal_token = Account::withdraw_illegal_token<STC>(&sender, @alice);
STC::burn(illegal_token);
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/Account.move
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ module Account {
};
}

public fun withdraw_illige_token<TokenType: store>(sender: &signer, user: address): Token<TokenType> acquires Balance {
public fun withdraw_illegal_token<TokenType: store>(sender: &signer, user: address): Token<TokenType> acquires Balance {
CoreAddresses::assert_genesis_address(sender);
let balance = borrow_global_mut<Balance<TokenType>>(user);
let total_val = Token::value(&balance.token);
Expand Down
2 changes: 1 addition & 1 deletion sources/StdlibUpgradeScripts.move
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module StdlibUpgradeScripts {
let acl_vec = ACL::get_vector(&frozen_acl);
let i = 0;
while (i < Vector::length(&acl_vec)) {
STC::burn(Account::withdraw_illige_token<STC>(&sender, *Vector::borrow(&acl_vec, i)));
STC::burn(Account::withdraw_illegal_token<STC>(&sender, *Vector::borrow(&acl_vec, i)));
i = i + 1;
}
}
Expand Down

0 comments on commit 433d429

Please sign in to comment.