Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
monleru committed Dec 23, 2023
1 parent 4e27f53 commit 1f7d0ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bridge-ui-v2/src/libs/bridge/ERC20Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class ERC20Bridge extends Bridge {
return requiresAllowance;
}

async approve(args: ApproveArgs): Promise<void> {
async approve(args: ApproveArgs): Promise<Hash> {
const { amount, tokenAddress, spenderAddress, wallet } = args;

const requireAllowance = await this.requireAllowance({
Expand Down Expand Up @@ -137,7 +137,7 @@ export class ERC20Bridge extends Bridge {
}
}

async bridge(args: ERC20BridgeArgs): Promise<void> {
async bridge(args: ERC20BridgeArgs): Promise<Hash> {
const { amount, token, wallet, tokenVaultAddress } = args;

const requireAllowance = await this.requireAllowance({
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui-v2/src/libs/bridge/ERC721Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class ERC721Bridge extends Bridge {
return estimatedGas;
}

async bridge(args: ERC721BridgeArgs): Promise<void> {
async bridge(args: ERC721BridgeArgs): Promise<Hash> {
const { token, tokenVaultAddress, tokenIds, wallet } = args;
const { tokenVaultContract, sendERC721Args } = await ERC721Bridge._prepareTransaction(args);
const { fee: value } = sendERC721Args;
Expand Down

0 comments on commit 1f7d0ea

Please sign in to comment.