Skip to content

Commit

Permalink
fixup! fixup! fixup! fix: loading of wins, and gradient border on cla…
Browse files Browse the repository at this point in the history
…im modal
  • Loading branch information
RasenGUY committed Dec 10, 2023
1 parent 694edba commit 86db114
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libs/wagmi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,9 @@ export class BlockchainAPIBase implements IBlockchainAPIBase {
})
return await this.handleWriteRequest(config);
}

async waitForMined(hash: HexishString) {
return await this.handleRequest(async () => await waitForTransaction({ hash }));
}

async waitForMined(hash: HexishString) {
return await this.handleRequest(async () => await waitForTransaction({ hash, confirmations: 5 }));
}
async handleRequest(func: any) {
try {
return { data: await func() , error: undefined, meta: undefined }
Expand Down

0 comments on commit 86db114

Please sign in to comment.