We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f277841 commit 6035a20Copy full SHA for 6035a20
src/Demo.tsx
@@ -125,8 +125,9 @@ const App = () => {
125
console.log('signature:', sig)
126
addNewConsoleLine(`signature: ${sig}`)
127
128
- // get networkRpcUrl from walletClient, or set it yourself
129
- const networkRpcUrl = walletClient.chain.rpcUrls.default.http[0]
+ const chainId = sequence.network.ChainId.MAINNET
+ const name = sequence.network.networks[chainId].name
130
+ const networkRpcUrl = sequence.network.nodesURL(name)
131
const rpcProvider = new ethers.JsonRpcProvider(networkRpcUrl)
132
133
// We use the sequence.utils.isValidMessageSignature method to verify signatures
0 commit comments