decent-bet / connex-entities

Connex entity contracts allows mapping of contract entities
MIT License
1 stars 0 forks source link

Replace AccountEventFilter block confirmation until with tx loop #16

Closed molekilla closed 5 years ago

molekilla commented 5 years ago
const { txId, signer } = await sign
currBlock = await connex.thor.block().get()
while (txId not in currBlock.transactions) {
  await connex.thor.ticker().next()
  currBlock = await connex.thor.block().get()
}
receipt = await connex.thor.transaction(txId).get()
events = receipt.output.events
molekilla commented 5 years ago

Resolved