Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f049c26

Browse files
LeeAlephiumnop33
authored andcommittedJul 11, 2022
Minor stuff
1 parent b0fc26a commit f049c26

File tree

3 files changed

+7
-43
lines changed

3 files changed

+7
-43
lines changed
 

‎package-lock.json

+2-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/contexts/walletconnect.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const WalletConnectContextProvider: FC = ({ children }) => {
115115
walletConnectClient.respond({
116116
topic: requestEvent.topic,
117117
response: {
118-
id: requestEvent.request.id,
118+
id: requestEvent.id,
119119
jsonrpc: '2.0',
120120
error: {
121121
code: -32000,
@@ -134,7 +134,9 @@ export const WalletConnectContextProvider: FC = ({ children }) => {
134134
setRequestEvent(event)
135135

136136
const {
137-
request: { method, params }
137+
params: {
138+
request: { method, params }
139+
}
138140
} = event
139141

140142
try {

‎src/modals/SendModals/SendModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function SendModal<PT extends { fromAddress: Address }, T extends PT>({
189189
await walletConnectClient.respond({
190190
topic: requestEvent.topic,
191191
response: {
192-
id: requestEvent.request.id,
192+
id: requestEvent.id,
193193
jsonrpc: '2.0',
194194
result: wcResult
195195
}

0 commit comments

Comments
 (0)
This repository has been archived.