Skip to content

Commit

Permalink
fix: if rejected, do the tx as normal
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBHarley committed Nov 29, 2023
1 parent 5c9f9ee commit 8156da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/injected/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ messenger.reply('confirm', async ({ tx, id }: MetamaskTransactionRequest) => {

messenger.reply('reject', async ({ tx, id }: MetamaskTransactionRequest) => {
log('reject', id);
results[id] = new Error('User rejected');
results[id] = await originalRequest({ method: 'eth_sendTransaction', params: [tx] });
});

0 comments on commit 8156da0

Please sign in to comment.