bepro-js
bepro-js copied to clipboard
Change createNetwork to emit CreatedNetwork event
Change createNetwork
function on the smart-contract of NetworkFactory.sol
to emit the CreatedNetwork
event
Change the CreatedNetwork
event to emit the creators address instead of amount
Working on this. Just need to sort out:
- Which ID should be referenced by the CreatedNetwork event? I can't find an obvious ID (public variable) from the Network class.
- I understand msg.sender would be the creator's address. Which address would reference the opener?
@jaymeschroeder I would say its id is essentially its index on the networks
mapping
@jaymeschroeder is working on this.
@moshmage, @jaymeschroeder has a solution - check your bounty