Skip to content

Commit

Permalink
examples: fix renaming to BASE_ASSET_ID in comment (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan authored Jun 26, 2022
1 parent b5fe780 commit b583daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wallet_smart_contract/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abi Wallet {
impl Wallet for Contract {
#[storage(read, write)]fn receive_funds() {
if msg_asset_id() == ~ContractId::from(BASE_ASSET_ID) {
// If we received `NATIVE_ASSET_ID` then keep track of the balance.
// If we received `BASE_ASSET_ID` then keep track of the balance.
// Otherwise, we're receiving other native assets and don't care
// about our balance of tokens.
storage.balance = storage.balance + msg_amount();
Expand Down

0 comments on commit b583daa

Please sign in to comment.