Skip to content

Commit baa9835

Browse files
committed
state override no pointer
1 parent bbdbcd8 commit baa9835

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ethclient/ethclient.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -830,17 +830,17 @@ type SimulateOptions struct {
830830

831831
// SimulateBlock represents a batch of calls to be simulated.
832832
type SimulateBlock struct {
833-
BlockOverrides *ethereum.BlockOverrides `json:"blockOverrides,omitempty"`
834-
StateOverrides *map[common.Address]ethereum.OverrideAccount `json:"stateOverrides,omitempty"`
835-
Calls []ethereum.CallMsg `json:"calls"`
833+
BlockOverrides *ethereum.BlockOverrides `json:"blockOverrides,omitempty"`
834+
StateOverrides map[common.Address]ethereum.OverrideAccount `json:"stateOverrides,omitempty"`
835+
Calls []ethereum.CallMsg `json:"calls"`
836836
}
837837

838838
// MarshalJSON implements json.Marshaler for SimulateBlock.
839839
func (s SimulateBlock) MarshalJSON() ([]byte, error) {
840840
type Alias struct {
841-
BlockOverrides *ethereum.BlockOverrides `json:"blockOverrides,omitempty"`
842-
StateOverrides *map[common.Address]ethereum.OverrideAccount `json:"stateOverrides,omitempty"`
843-
Calls []interface{} `json:"calls"`
841+
BlockOverrides *ethereum.BlockOverrides `json:"blockOverrides,omitempty"`
842+
StateOverrides map[common.Address]ethereum.OverrideAccount `json:"stateOverrides,omitempty"`
843+
Calls []interface{} `json:"calls"`
844844
}
845845
calls := make([]interface{}, len(s.Calls))
846846
for i, call := range s.Calls {

ethclient/ethclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ func TestSimulateV1WithStateOverrides(t *testing.T) {
920920
opts := ethclient.SimulateOptions{
921921
BlockStateCalls: []ethclient.SimulateBlock{
922922
{
923-
StateOverrides: &stateOverrides,
923+
StateOverrides: stateOverrides,
924924
Calls: []ethereum.CallMsg{
925925
{
926926
From: from,

0 commit comments

Comments
 (0)