Skip to content

Commit

Permalink
Add block timestamp support
Browse files Browse the repository at this point in the history
  • Loading branch information
cygaar committed Oct 17, 2023
1 parent c144a20 commit b39227a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abi2/abi2.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,8 @@ func (lwc *logWithCtx) get(name string) any {
return lwc.b.Hash()
case "block_num":
return lwc.b.Num()
case "block_timestamp":
return lwc.b.Header.Time
case "tx_hash":
return lwc.t.Hash()
case "tx_idx":
Expand Down

0 comments on commit b39227a

Please sign in to comment.