Unverified Commit 96f8be36 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #19732 from karalabe/simulated-eip155

accounts/abi/bind/backends: use EIP155 on the simulated chain
parents cf47ee53 38c914be
...@@ -316,7 +316,7 @@ func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transa ...@@ -316,7 +316,7 @@ func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transa
b.mu.Lock() b.mu.Lock()
defer b.mu.Unlock() defer b.mu.Unlock()
sender, err := types.Sender(types.HomesteadSigner{}, tx) sender, err := types.Sender(types.NewEIP155Signer(b.config.ChainID), tx)
if err != nil { if err != nil {
panic(fmt.Errorf("invalid transaction: %v", err)) panic(fmt.Errorf("invalid transaction: %v", err))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment