superblocks-lab
superblocks-lab copied to clipboard
Consider adding transaction hash to auto-generated Contracts object
Summary
Add transactionHash
field to auto-generated Contracts data object (accessible via this.Contract
in app.js).
In src/deployer.js
:
(function(module, Contracts) {
var data={
...
address: "0x0...",
transactionHash: "0x0...",
network: "rinkeby",
...
Motivation
Can we get Tx hash from contract deployment below address* ?
- "below address" means the second line, inside the auto-generated Contracts data structure.
I prefer exporting ABI, contract address and transaction hash to a new JSON, skipping dependencies on built-in dapp and fallback to web3 contracts using ABI and contract address. The transaction hash is used to verify chain/network id, together with contract address.