Skip to content

Commit

Permalink
add: network id in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Jun 9, 2023
1 parent 8f1e3ea commit 641a240
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zkevm/zkevm_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ export class ZkEvmBridge extends BaseToken<IZkEvmClientConfig> {
return this.method(
"networkID"
).then(method => {
return this.processRead<number>(method);
return this.processRead<number>(method).then((networkId) => {
this.networkID_ = networkId;
return networkId;
});
});
}

Expand Down

0 comments on commit 641a240

Please sign in to comment.