Skip to content

Commit

Permalink
Update storage balance
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Feb 4, 2025
1 parent f270bf6 commit dab2dc4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion near/omni-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,15 @@ impl Contract {
destination_nonce,
};

let _ = self.add_transfer_message(transfer_message.clone(), sender_id.clone());
let required_storage_balance =
self.add_transfer_message(transfer_message.clone(), sender_id.clone());

self.update_storage_balance(
env::current_account_id(),
required_storage_balance,
NearToken::from_yoctonear(0),
);

env::log_str(&OmniBridgeEvent::InitTransferEvent { transfer_message }.to_log_string());
}

Expand Down

0 comments on commit dab2dc4

Please sign in to comment.