aptos/token_bridge: don't take wormhole_fee as arg in entry

This commit is contained in:
Csongor Kiss 2022-10-17 17:01:01 +01:00 committed by Evan Gray
parent 500654cf02
commit 98f5260918
1 changed files with 1 additions and 1 deletions

View File

@ -21,10 +21,10 @@ module token_bridge::transfer_tokens {
recipient_chain: u64,
recipient: vector<u8>,
relayer_fee: u64,
wormhole_fee: u64,
nonce: u64
) {
let coins = coin::withdraw<CoinType>(sender, amount);
let wormhole_fee = wormhole::state::get_message_fee();
let wormhole_fee_coins = coin::withdraw<AptosCoin>(sender, wormhole_fee);
transfer_tokens<CoinType>(
coins,