Skip to content

Commit

Permalink
Disable EIP-1559
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Nov 27, 2024
1 parent bccb1cc commit 294af38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion zetaclient/chains/evm/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ func NewObserver(
evmJSONRPC: evmJSONRPC,
outboundConfirmedReceipts: make(map[string]*ethtypes.Receipt),
outboundConfirmedTransactions: make(map[string]*ethtypes.Transaction),
priorityFeeConfig: priorityFeeConfig{},
priorityFeeConfig: priorityFeeConfig{
// temporary disable EIP-1559
// https://github.com/zeta-chain/node/issues/3221
supported: false,
checked: true,
},
}

// load last block scanned
Expand Down
6 changes: 4 additions & 2 deletions zetaclient/chains/evm/observer/observer_gas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func TestPostGasPrice(t *testing.T) {
observer, _ := MockEVMObserver(t, chain, ethRPC, nil, zetacoreClient, nil, blockNumber, chainParam)

// Given empty baseFee from RPC
ethRPC.On("HeaderByNumber", anything, anything).Return(&ethtypes.Header{BaseFee: nil}, nil)
ethRPC.On("HeaderByNumber", anything, anything).Return(&ethtypes.Header{BaseFee: nil}, nil).Maybe()

// Given gasPrice and priorityFee from RPC
ethRPC.On("SuggestGasPrice", anything).Return(big.NewInt(3*gwei), nil)
ethRPC.On("SuggestGasTipCap", anything).Return(big.NewInt(0), nil)
ethRPC.On("SuggestGasTipCap", anything).Return(big.NewInt(0), nil).Maybe()

// Given mock collector for zetacore call
// PostVoteGasPrice(ctx, chain, gasPrice, priorityFee, blockNum)
Expand All @@ -69,6 +69,8 @@ func TestPostGasPrice(t *testing.T) {
})

t.Run("Post EIP-1559 supports priorityFee", func(t *testing.T) {
t.Skipf("Skipped due to https://github.com/zeta-chain/node/issues/3221")

// ARRANGE
// Given ETH rpc mock
ethRPC := mocks.NewEVMRPCClient(t)
Expand Down

0 comments on commit 294af38

Please sign in to comment.