Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support eth_signTypeData_v3 #14

Merged
merged 3 commits into from
Jan 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support .sendAsync() for method: net_version
hboon committed Jan 12, 2021
commit e8e708585f6bd68b97c061ac6d96ed69178ff908
2 changes: 1 addition & 1 deletion dist/AlphaWallet-min.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions dist/AlphaWallet.js
Original file line number Diff line number Diff line change
@@ -54932,6 +54932,23 @@ ProviderEngine.prototype.isConnected = function () {
}).result;
};

ProviderEngine.prototype.sendAsyncOriginal = ProviderEngine.prototype.sendAsync;
ProviderEngine.prototype.sendAsync = function (payload, cb) {
module.exports = AlphaWallet;
switch (payload.method) {
case 'net_version':
var result = {
id: payload.id,
jsonrpc: payload.jsonrpc,
result: globalSyncOptions.networkVersion || null
};
cb(null, result);
break;
default:
this.sendAsyncOriginal(payload, cb);
}
};

module.exports = AlphaWallet;

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
16 changes: 16 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -122,5 +122,21 @@ ProviderEngine.prototype.isConnected = function () {
}).result
}

ProviderEngine.prototype.sendAsyncOriginal = ProviderEngine.prototype.sendAsync
ProviderEngine.prototype.sendAsync = function (payload, cb) {module.exports = AlphaWallet
switch (payload.method) {
case 'net_version':
var result = {
id: payload.id,
jsonrpc: payload.jsonrpc,
result: globalSyncOptions.networkVersion || null
};
cb(null, result);
break;
default:
this.sendAsyncOriginal(payload, cb)
}
};

module.exports = AlphaWallet