Skip to content

Commit fff563a

Browse files
committed
use selected network
1 parent 6035a20 commit fff563a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const App = () => {
125125
console.log('signature:', sig)
126126
addNewConsoleLine(`signature: ${sig}`)
127127

128-
const chainId = sequence.network.ChainId.MAINNET
128+
const chainId = await walletClient.getChainId()
129129
const name = sequence.network.networks[chainId].name
130130
const networkRpcUrl = sequence.network.nodesURL(name)
131131
const rpcProvider = new ethers.JsonRpcProvider(networkRpcUrl)

0 commit comments

Comments
 (0)