selectFork
Signature
Section titled “Signature”function selectFork(uint256 forkId) external;Description
Section titled “Description”Takes a fork identifier created by createFork and sets the corresponding forked state as active.
Examples
Section titled “Examples”Select a previously created fork:
uint256 forkId = vm.createFork(MAINNET_RPC_URL);
vm.selectFork(forkId);
assertEq(vm.activeFork(), forkId);