Skip to content

Commit 6035a20

Browse files
committed
use working rpc node
1 parent f277841 commit 6035a20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Demo.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ const App = () => {
125125
console.log('signature:', sig)
126126
addNewConsoleLine(`signature: ${sig}`)
127127

128-
// get networkRpcUrl from walletClient, or set it yourself
129-
const networkRpcUrl = walletClient.chain.rpcUrls.default.http[0]
128+
const chainId = sequence.network.ChainId.MAINNET
129+
const name = sequence.network.networks[chainId].name
130+
const networkRpcUrl = sequence.network.nodesURL(name)
130131
const rpcProvider = new ethers.JsonRpcProvider(networkRpcUrl)
131132

132133
// We use the sequence.utils.isValidMessageSignature method to verify signatures

0 commit comments

Comments
 (0)