Skip to content

Commit

Permalink
Force precompile modules registration in ethclient (#519)
Browse files Browse the repository at this point in the history
* Force precompile modules registration by importing ethclient as package (#1121)

* fix import

---------

Co-authored-by: wh00hw <88404971+wh00hw@users.noreply.github.com>
  • Loading branch information
darioush and wh00hw authored Mar 19, 2024
1 parent 953ba9e commit 0a3ee0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ import (
"github.com/ava-labs/coreth/rpc"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"

// Force-load precompiles to trigger registration
_ "github.com/ava-labs/coreth/precompile/registry"
)

// Verify that Client implements required interfaces
Expand Down

0 comments on commit 0a3ee0a

Please # to comment.