graphprotocol / contracts

Contracts repository for The Graph protocol

Home Page:https://thegraph.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gre: provide better debugging print option so we can use expresive form

tmigone opened this issue · comments

await sendTransaction(publisher, contracts.GNS, 'publishNewSubgraph', [
    deploymentId,
    randomHexBytes(),
    randomHexBytes(),
  ])

I'd like to eventually move to using the more expressive:
const tx = await contracts.GNS.connect(publisher).publishNewSubgraph(deploymentId, randomHexBytes(), randomHexBytes())
And then have a wait tx helper that prints debugging. We could work on that on a different PR (in the future ™️).