tests/fuzzers/les: fix crash in fuzzer (#28362)

pull/28364/head
Marius van der Wijden 1 year ago committed by GitHub
parent 20d5256e40
commit d782dc2341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tests/fuzzers/les/les-fuzzer.go

@ -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…
Cancel
Save