Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 0e9e42f

Browse files
committed
browser version working as well
1 parent 33fd108 commit 0e9e42f

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

configs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
// infura/cloudflare/your-own-node.example...
44

5-
const RPC_HOST = "34.246.186.79"
5+
// const RPC_HOST = "34.246.186.79"
6+
const RPC_HOST = "antani-node.dev" // /etc/hosts entry: "34.246.186.79 antani-node.dev"
67

78
// use this if you're running your own node on the same machine (your "dev box"):
89

eth-keychain-example-browser.js

+6-11
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@ if (NODE_JS) {
2323
wallet.info()
2424

2525
;(async () => {
26-
try {
27-
await wallet.netInfo()
28-
await wallet.sendTXSelf()
29-
await wallet.netInfo()
30-
const process = require('process')
31-
process.exit()
32-
} catch (err) {
33-
console.log("Caught async error")
34-
console.error(err)
35-
console.error(err.stack)
36-
}
26+
console.log("netinfo")
27+
await wallet.netInfo()
28+
console.log("sendTXSelf")
29+
await wallet.sendTXSelf()
30+
console.log("netInfo")
31+
await wallet.netInfo()
3732
})()
3833

3934
// new Keychain({ store: localStorage }) // browser

0 commit comments

Comments
 (0)