mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
add sign in test
This commit is contained in:
parent
f9f661779c
commit
b13fd1f641
1 changed files with 6 additions and 0 deletions
|
|
@ -47,5 +47,11 @@ func TestBlockSigner(t *testing.T) {
|
||||||
for _, it := range signers {
|
for _, it := range signers {
|
||||||
t.Log("signer", it.String())
|
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()
|
contractBackend.Commit()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue