forked from cerc-io/plugeth
tests/fuzzers/les: fix crash in fuzzer (#28362)
This commit is contained in:
parent
20d5256e40
commit
d782dc2341
@ -70,7 +70,7 @@ func makechain() (bc *core.BlockChain, addresses []common.Address, txHashes []co
|
|||||||
)
|
)
|
||||||
nonce := uint64(i)
|
nonce := uint64(i)
|
||||||
if i%4 == 0 {
|
if i%4 == 0 {
|
||||||
tx, _ = types.SignTx(types.NewContractCreation(nonce, big.NewInt(0), 200000, big.NewInt(0), testContractCode), signer, bankKey)
|
tx, _ = types.SignTx(types.NewContractCreation(nonce, big.NewInt(0), 200000, big.NewInt(params.GWei), testContractCode), signer, bankKey)
|
||||||
addr = crypto.CreateAddress(bankAddr, nonce)
|
addr = crypto.CreateAddress(bankAddr, nonce)
|
||||||
} else {
|
} else {
|
||||||
addr = common.BigToAddress(big.NewInt(int64(i)))
|
addr = common.BigToAddress(big.NewInt(int64(i)))
|
||||||
|
Loading…
Reference in New Issue
Block a user