Skip to content

Commit

Permalink
fix: correct amount of token burns (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 authored Oct 8, 2024
1 parent d869b10 commit 070de40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src-20/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl SRC3 for Contract {
#[storage(read, write)]
fn burn(sub_id: SubId, amount: u64) {
require(sub_id == DEFAULT_SUB_ID, "incorrect-sub-id");
require(msg_amount() >= amount, "incorrect-amount-provided");
require(msg_amount() == amount, "incorrect-amount-provided");
require(
msg_asset_id() == AssetId::default(),
"incorrect-asset-provided",
Expand Down

0 comments on commit 070de40

Please sign in to comment.