Skip to content

Commit 9f4c4a0

Browse files
committed
fix last added condition
1 parent d3b4f4c commit 9f4c4a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

estimator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ func V2Simulate(provider *ethrpc.Provider, wallet common.Address, transactions T
623623
addrToOverride: {Code: walletGasEstimatorCodeV2},
624624
}
625625
for address, override := range overrides {
626-
if address == addrToOverride {
626+
if address == addrToOverride || address == wallet {
627627
return nil, fmt.Errorf("cannot override wallet or implementation address %v", addrToOverride.Hex())
628628
}
629629

0 commit comments

Comments
 (0)