Skip to content

Commit 23322df

Browse files
committedFeb 19, 2021
Fix: not returning chainId correctly for chainIds >= 16, e.g xDai
1 parent 5d4368b commit 23322df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎dist/AlphaWallet-min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/AlphaWallet.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56747,7 +56747,7 @@ ProviderEngine.prototype.sendAsync = function (payload, cb) {
5674756747
var result = {
5674856748
id: payload.id,
5674956749
jsonrpc: payload.jsonrpc,
56750-
result: "0x" + globalSyncOptions.networkVersion.toString(16) || null
56750+
result: "0x" + parseInt(globalSyncOptions.networkVersion).toString(16) || null
5675156751
};
5675256752
cb(null, result);
5675356753
break;

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ProviderEngine.prototype.sendAsync = function (payload, cb) {
163163
var result = {
164164
id: payload.id,
165165
jsonrpc: payload.jsonrpc,
166-
result: "0x" + globalSyncOptions.networkVersion.toString(16) || null
166+
result: "0x" + parseInt(globalSyncOptions.networkVersion).toString(16) || null
167167
};
168168
cb(null, result);
169169
break;

0 commit comments

Comments
 (0)
Please sign in to comment.