Skip to content

Commit 8156da0

Browse files
committed
fix: if rejected, do the tx as normal
1 parent 5c9f9ee commit 8156da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/injected/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ messenger.reply('confirm', async ({ tx, id }: MetamaskTransactionRequest) => {
104104

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

0 commit comments

Comments
 (0)