Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Handle when broadcast, have an active prank error. #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/HuffConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,19 @@ contract HuffConfig {
cleanup[1] = string.concat("src/", tempFile, ".huff");

// set `msg.sender` for upcoming create context
vm.prank(deployer);

if (!should_broadcast) {
vm.prank(deployer);
}

vm.ffi(cleanup);
}

/// @notice get creation code of a contract plus encoded arguments
function creation_code_with_args(string memory file) public payable returns (bytes memory bytecode) {
function creation_code_with_args(string memory file)
public
payable
returns (bytes memory bytecode)
{
bytecode = creation_code(file);
return bytes.concat(bytecode, args);
}
Expand Down