Skip to content

Commit

Permalink
Fix BlockContext comment (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
martineckardt authored Jul 14, 2023
1 parent e23b01c commit 484ce17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions precompile/contract/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ type AccessibleState interface {
CallFromPrecompile(caller common.Address, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error)
}

// BlockContext defines an interface that provides information to a stateful precompile
// about the block that activates the upgrade. The precompile can access this information
// to initialize its state.
// BlockContext defines an interface that provides information to a stateful precompile about the
// current block. The BlockContext may be provided during both precompile activation and execution.
type BlockContext interface {
Number() *big.Int
Timestamp() *big.Int
Expand Down

0 comments on commit 484ce17

Please sign in to comment.