We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6659b commit 218c111Copy full SHA for 218c111
.gitignore
@@ -1,3 +1,5 @@
1
node_modules
2
3
-truebit-os
+truebit-os
4
+
5
+export.json
deploy.js
@@ -43,7 +43,12 @@ async function deploy() {
43
44
let contract = new web3.eth.Contract(abi)
45
46
- await contract.deploy({data: "0x" + bin, arguments: args}).send(options)
+ let c = await contract.deploy({data: "0x" + bin, arguments: args}).send(options)
47
48
+ fs.writeFileSync("export.json", JSON.stringify({
49
+ address: c._address,
50
+ abi: c._jsonInterface
51
+ }))
52
}
53
54
deploy()
0 commit comments