This repository was archived by the owner on Jan 9, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -150,16 +150,15 @@ contract ChainwebConfigReader is CommonBase {
150150 }
151151}
152152
153- contract ChainwebTest is Test , ChainwebConfigReader {
153+ contract ChainwebTest is Test {
154154 Chainweb public chainweb;
155155
156- constructor (string memory environment ) {
157- ChainwebConfig memory config = readChainwebConfig (environment);
156+ constructor (uint24 chainNumbers , uint24 chainwebChainIdOffset ) {
158157 chainweb = new Chainweb (
159- uint24 (config.numberOfChains) ,
158+ chainNumbers ,
160159 block .chainid ,
161- uint24 (config. chainwebChainIdOffset) ,
162- config.extenalHostUrl
160+ chainwebChainIdOffset,
161+ ""
163162 );
164163 chainweb.setupChainsForTest ();
165164 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {Test, console} from "forge-std/Test.sol";
55import {Counter} from "../src/Counter.sol " ;
66import {ChainwebTest, ChainwebConfig} from "kadena-io/foundry-chainweb/Chainweb.sol " ;
77
8- contract CounterTest is ChainwebTest (" anvil " ) {
8+ contract CounterTest is ChainwebTest (4 , 0 ) {
99 function test_MultiChains () public {
1010 uint256 [] memory chainIds = chainweb.getChainIds ();
1111 console.log ("Available chain IDs: " , chainIds.length );
You can’t perform that action at this time.
0 commit comments