Skip to content

Commit

Permalink
Rely solely on amount of asset transferred by Wormhole (moonbeam-foun…
Browse files Browse the repository at this point in the history
…dation#2244)

Co-authored-by: crystalin <alan.sapede@gmail.com>
  • Loading branch information
2 people authored and imstar15 committed May 16, 2023
1 parent f6f7d14 commit 239846e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion precompiles/gmp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ where

let amount_transferred = after_amount.saturating_sub(before_amount);
let amount = amount_transferred
.min(transfer_with_payload.amount)
.try_into()
.map_err(|_| revert("Amount overflows balance"))?;

Expand Down

0 comments on commit 239846e

Please sign in to comment.