From c684ee9c7f9b67db7d31e91dab9dbd65cda21fcf Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Mon, 31 Jan 2022 15:42:34 +0300 Subject: [PATCH] chore: connect to wallet without node (wip) --- .../aepp-wallet-communication/rpc/aepp-rpc.js | 2 +- test/environment/aepp.html | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 test/environment/aepp.html diff --git a/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js b/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js index 416d3881a6..81a65581f6 100644 --- a/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js +++ b/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js @@ -276,7 +276,7 @@ export default Ae.compose({ } return this.rpcClient.request( METHODS.sign, - { onAccount: opt.onAccount, tx, returnSigned: false, networkId: this.getNetworkId() } + { onAccount: opt.onAccount, tx, returnSigned: false, networkId: this.getNetworkId(opt) } ) } } diff --git a/test/environment/aepp.html b/test/environment/aepp.html new file mode 100644 index 0000000000..8ba9ad2b3f --- /dev/null +++ b/test/environment/aepp.html @@ -0,0 +1,63 @@ + + + + + SDK test in browser + + +Open developer console + + + +