Skip to content

Commit

Permalink
Moved broadcast part in script
Browse files Browse the repository at this point in the history
  • Loading branch information
eloi010 committed Dec 29, 2023
1 parent c77670f commit a55a2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/deployEIP6551.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ contract ERC6551OpenfortDeploy is Script {
// Create an acccount to serve as implementation
ERC6551OpenfortAccount erc6551OpenfortAccount = new ERC6551OpenfortAccount{salt: versionSalt}();

vm.stopBroadcast();

uint256 chainId;
assembly {
chainId := chainid()
Expand All @@ -33,7 +35,5 @@ contract ERC6551OpenfortDeploy is Script {
address account2 =
erc6551Registry.createAccount(address(erc6551OpenfortAccount), versionSalt, chainId, address(nft721), 1);
console.log("Registry at address %s has created an account at address %s", address(erc6551Registry), account2);

vm.stopBroadcast();
}
}

0 comments on commit a55a2eb

Please sign in to comment.