Skip to content

Commit

Permalink
Merge pull request ethereum#1 from rohansbansal/concurrent-execution
Browse files Browse the repository at this point in the history
fixed contract name
  • Loading branch information
aaronbuchwald authored Oct 16, 2021
2 parents a3c1281 + 08a3b82 commit 5df0cb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Owner.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.8.7;
pragma solidity >=0.7.0 <=0.8.9;

/**
* @title Owner
Expand Down
8 changes: 7 additions & 1 deletion core/bench_concurrent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ func benchmarkArbitraryBlockExecution(b *testing.B, numBlocks int, numTxs int, r
}
numContracts := 10
contractAddrs := make([]common.Address, 0, numContracts)
contract, _ := contracts[fmt.Sprintf("%s:%s", contractSrc, "Owner")]
contract, exists := contracts[fmt.Sprintf("%s:%s", contractSrc, "Owner")]
if !exists {
contract, exists = contracts["Owner.sol:Owner"]
}
if !exists {
b.Fatal("contract doesn't exist")
}
code := common.Hex2Bytes(contract.Code[2:])
generateContractChain, _ := GenerateChain(gspec.Config, genesis, engine, db, 1, func(i int, block *BlockGen) {
for i := 0; i < numContracts; i++ {
Expand Down

0 comments on commit 5df0cb2

Please sign in to comment.