Skip to content

Commit

Permalink
Inline ConfigurationBlockContext methods in BlockContext
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 22, 2025
1 parent 02d8eec commit f3231dd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions precompile/contract/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ type AccessibleState interface {
GetChainConfig() precompileconfig.ChainConfig
}

// ConfigurationBlockContext defines the interface required to configure a precompile.
type ConfigurationBlockContext interface {
type BlockContext interface {
Number() *big.Int
Time() uint64
}

type BlockContext interface {
ConfigurationBlockContext
// GetPredicateResults returns an arbitrary byte array result of verifying the predicates
// of the given transaction, precompile address pair.
GetPredicateResults(txHash common.Hash, precompileAddress common.Address) []byte
Expand Down

0 comments on commit f3231dd

Please sign in to comment.