accounts/abi/bind/backends: use EIP155 on the simulated chain

ChrisChinchilla-patch-3
Péter Szilágyi 6 years ago
parent cf47ee5339
commit 38c914be64
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 2
      accounts/abi/bind/backends/simulated.go

@ -316,7 +316,7 @@ func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transa
b.mu.Lock()
defer b.mu.Unlock()
sender, err := types.Sender(types.HomesteadSigner{}, tx)
sender, err := types.Sender(types.NewEIP155Signer(b.config.ChainID), tx)
if err != nil {
panic(fmt.Errorf("invalid transaction: %v", err))
}

Loading…
Cancel
Save