Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 467 Bytes

stop-broadcast.md

File metadata and controls

25 lines (19 loc) · 467 Bytes

stopBroadcast

Signature

function stopBroadcast() external;

Description

Stops collecting transactions for later on-chain broadcasting.

Examples

function deployNoArgs() public {
    // broadcast the next call
    cheats.broadcast();
    Test test1 = new Test();

    // broadcast all calls between this line and `stopBroadcast`
    cheats.startBroadcast();
    Test test2 = new Test();
    cheats.stopBroadcast();
}