Skip to content

Commit

Permalink
chore: fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Jun 9, 2024
1 parent 48cd4fd commit d1fd4b7
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/widget/src/controllers/transfers/evm/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ type BuildEvmFungibleTransactionsArtifacts = {
* Not sure how to handle if it throws :shrug:
*/
export async function buildEvmFungibleTransactions({
evmWallet: {
address,
provider,
providerChainId
},
evmWallet: { address, provider, providerChainId },
chainId,
destinationAddress,
resourceId,
Expand All @@ -51,15 +47,12 @@ export async function buildEvmFungibleTransactions({
fee: EvmFee;
}): Promise<BuildEvmFungibleTransactionsArtifacts> {
const evmTransfer = new EVMAssetTransfer();
await evmTransfer.init(
new Web3Provider(evmWallet.provider, evmWallet.providerChainId),
env
);
await evmTransfer.init(new Web3Provider(provider, providerChainId), env);

// Hack to make fungible transfer behave like it does on substrate side
// where fee is deducted from user inputted amount rather than added on top
const originalTransfer = await evmTransfer.createFungibleTransfer(
evmWallet.address,
address,
chainId,
destinationAddress,
resourceId,
Expand Down Expand Up @@ -92,7 +85,7 @@ export async function buildEvmFungibleTransactions({
}

const transfer = await evmTransfer.createFungibleTransfer(
evmWallet.address,
address,
chainId,
destinationAddress,
resourceId,
Expand Down

0 comments on commit d1fd4b7

Please sign in to comment.