Skip to content

Commit

Permalink
CU-864e5dbdw - Implement new method on NWD to answer getWalletInfo Wc…
Browse files Browse the repository at this point in the history
…'s request
  • Loading branch information
LAPTOP-HBL4M4SL\rauld committed May 8, 2023
1 parent a112b46 commit a82264c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/context/WalletConnect/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ class N3Helper {
)
}

if (request.method === 'getNetworkVersion') {
const response = await new rpc.RPCClient(this.rpcAddress).getVersion()
result = {
rpcAddress: this.rpcAddress,
...response,
}
}

if (request.method === 'getapplicationlog') {
result = await new rpc.RPCClient(this.rpcAddress).getApplicationLog(
request.params[0],
Expand Down
2 changes: 2 additions & 0 deletions app/core/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ export const DEFAULT_METHODS = [
'getrawmempool',
'getcontractstate',
'findstates',
'getNetworkVersion',
]
export const DEFAULT_AUTOACCEPT_METHODS = [
'testInvoke',
Expand All @@ -391,6 +392,7 @@ export const DEFAULT_AUTOACCEPT_METHODS = [
'getrawmempool',
'getcontractstate',
'findstates',
'getNetworkVersion',
]

export const DEFAULT_LOGGER = 'error'
Expand Down

0 comments on commit a82264c

Please sign in to comment.