diff --git a/core/chains/evm/client/chain_client.go b/core/chains/evm/client/chain_client.go index 52bc1263c75..016da44aa28 100644 --- a/core/chains/evm/client/chain_client.go +++ b/core/chains/evm/client/chain_client.go @@ -271,7 +271,7 @@ func (c *chainClient) LatestFinalizedBlock(ctx context.Context) (*evmtypes.Head, return c.multiNode.LatestFinalizedBlock(ctx) } -func (c *chainClient) CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { +func (c *chainClient) CheckTxOverflow(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { msg := ethereum.CallMsg{ From: from, To: &to, diff --git a/core/chains/evm/client/client.go b/core/chains/evm/client/client.go index 2758c9cf0a4..27a9db9b85f 100644 --- a/core/chains/evm/client/client.go +++ b/core/chains/evm/client/client.go @@ -97,7 +97,7 @@ type Client interface { IsL2() bool // Simulate the transaction prior to sending to catch zk out-of-counters errors ahead of time - CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError + CheckTxOverflow(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError } func ContextWithDefaultTimeout() (ctx context.Context, cancel context.CancelFunc) { @@ -375,6 +375,6 @@ func (client *client) LatestFinalizedBlock(_ context.Context) (*evmtypes.Head, e return nil, pkgerrors.New("not implemented. client was deprecated. New methods are added only to satisfy type constraints while we are migrating to new alternatives") } -func (client *client) CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { +func (client *client) CheckTxOverflow(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { return NewSendError(pkgerrors.New("not implemented. client was deprecated. New methods are added only to satisfy type constraints while we are migrating to new alternatives")) } diff --git a/core/chains/evm/client/mocks/client.go b/core/chains/evm/client/mocks/client.go index b3cdac3a6b6..7a5d7f960a9 100644 --- a/core/chains/evm/client/mocks/client.go +++ b/core/chains/evm/client/mocks/client.go @@ -238,12 +238,12 @@ func (_m *Client) ChainID() (*big.Int, error) { return r0, r1 } -// CheckTxValidity provides a mock function with given fields: ctx, from, to, data -func (_m *Client) CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *client.SendError { +// CheckTxOverflow provides a mock function with given fields: ctx, from, to, data +func (_m *Client) CheckTxOverflow(ctx context.Context, from common.Address, to common.Address, data []byte) *client.SendError { ret := _m.Called(ctx, from, to, data) if len(ret) == 0 { - panic("no return value specified for CheckTxValidity") + panic("no return value specified for CheckTxOverflow") } var r0 *client.SendError diff --git a/core/chains/evm/client/null_client.go b/core/chains/evm/client/null_client.go index 3129bcff9b0..98bc91a4395 100644 --- a/core/chains/evm/client/null_client.go +++ b/core/chains/evm/client/null_client.go @@ -232,6 +232,6 @@ func (nc *NullClient) LatestFinalizedBlock(_ context.Context) (*evmtypes.Head, e return nil, nil } -func (nc *NullClient) CheckTxValidity(_ context.Context, _ common.Address, _ common.Address, _ []byte) *SendError { +func (nc *NullClient) CheckTxOverflow(_ context.Context, _ common.Address, _ common.Address, _ []byte) *SendError { return nil } diff --git a/core/chains/evm/client/simulated_backend_client.go b/core/chains/evm/client/simulated_backend_client.go index 9fe2ff88ba7..100b867c202 100644 --- a/core/chains/evm/client/simulated_backend_client.go +++ b/core/chains/evm/client/simulated_backend_client.go @@ -774,7 +774,7 @@ func (c *SimulatedBackendClient) ethGetLogs(ctx context.Context, result interfac } } -func (c *SimulatedBackendClient) CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { +func (c *SimulatedBackendClient) CheckTxOverflow(ctx context.Context, from common.Address, to common.Address, data []byte) *SendError { return nil }