Skip to content

Commit 218c111

Browse files
committed
Exporting scrypt artifacts
1 parent 3e6659b commit 218c111

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22

3-
truebit-os
3+
truebit-os
4+
5+
export.json

deploy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ async function deploy() {
4343

4444
let contract = new web3.eth.Contract(abi)
4545

46-
await contract.deploy({data: "0x" + bin, arguments: args}).send(options)
46+
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+
}))
4752
}
4853

4954
deploy()

0 commit comments

Comments
 (0)