Skip to content

Commit

Permalink
Update packages/fungible-token/bridge-fungible-token/implementation/s…
Browse files Browse the repository at this point in the history
…rc/main.sw

Co-authored-by: Cameron Carstens <bitzoic.eth@gmail.com>
  • Loading branch information
DefiCake and bitzoic authored Aug 29, 2024
1 parent a7bf418 commit d6c4c94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Bridge for Contract {
#[storage(read, write)]
fn claim_refund(from: b256, token_address: b256, token_id: b256) {
let asset = _generate_sub_id_from_metadata(token_address, token_id);
let amount = storage::bridge.refund_amounts.get(from).get(asset).try_read().unwrap_or(ZERO_U256);
let amount = storage::bridge.refund_amounts.get(from).get(asset).try_read().unwrap_or(u256::zero());
require(
amount != ZERO_U256,
BridgeFungibleTokenError::NoRefundAvailable,
Expand Down

0 comments on commit d6c4c94

Please sign in to comment.