diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index 04283534de..3db8dcc553 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -162,7 +162,7 @@ func (b *SimulatedBackend) ForEachStorageAt(ctx context.Context, contract common b.mu.Lock() defer b.mu.Unlock() - if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 { + if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 { return errBlockNumberUnsupported } statedb, _ := b.blockchain.State() @@ -477,4 +477,4 @@ func (fb *filterBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscr func (fb *filterBackend) BloomStatus() (uint64, uint64) { return 4096, 0 } func (fb *filterBackend) ServiceFilter(ctx context.Context, ms *bloombits.MatcherSession) { panic("not supported") -} +} \ No newline at end of file diff --git a/contracts/blocksigner/blocksigner_test.go b/contracts/blocksigner/blocksigner_test.go index 5549da705d..0e8e675f29 100644 --- a/contracts/blocksigner/blocksigner_test.go +++ b/contracts/blocksigner/blocksigner_test.go @@ -47,5 +47,11 @@ func TestBlockSigner(t *testing.T) { for _, it := range signers { t.Log("signer", it.String()) } + + s, err := blockSigner.Sign(big.NewInt(1), byte0) + if err != nil { + t.Fatalf("can't sign: %v", err) + } + t.Log("tx data", s) contractBackend.Commit() } \ No newline at end of file