diff --git a/src/pages/transfer/managers/eosEvmBridge.ts b/src/pages/transfer/managers/eosEvmBridge.ts index 0b830efa..5fe975d9 100644 --- a/src/pages/transfer/managers/eosEvmBridge.ts +++ b/src/pages/transfer/managers/eosEvmBridge.ts @@ -44,7 +44,7 @@ export class EosEvmBridge extends TransferManager { transfer(amount: string, tokenSymbol: Asset.SymbolType = '4,EOS') { const action = Transfer.from({ from: this.nativeSession.auth.actor, - to: 'eosio.evm', + to: 'eosio.evmin', quantity: String(Asset.fromFloat(Number(amount), tokenSymbol)), memo: this.evmSession.address, }) diff --git a/src/pages/transfer/managers/evmEosBridge.ts b/src/pages/transfer/managers/evmEosBridge.ts index 88f6e3f3..28340984 100644 --- a/src/pages/transfer/managers/evmEosBridge.ts +++ b/src/pages/transfer/managers/evmEosBridge.ts @@ -31,6 +31,25 @@ export class EvmEosBridge extends TransferManager { const {gas} = await this.estimateGas(amountToTransfer) + // In the case of an USDT transfer, we must construct the transaction differently here + // From EVM bridge FE: + // + // USDT + // const fee = await this.erc20_contract().methods.egressFee().call() + // let tx = { + // from: this.address, + // to: this.erc20_addr(), + // value: fee, + // gasPrice: this.gasPrice, + // data: this.erc20_contract().methods.bridgeTransfer(this.addressEvm, this.transferValue, this.memo).encodeABI(), + // } + + // if (gaslimit != null) { + // tx.gas = gaslimit; + // } + // return tx + // + return this.evmSession.sendTransaction({ from: this.evmSession.address, to: targetEvmAddress,