Skip to content

Commit

Permalink
feat: use vm.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
bowd committed Aug 18, 2024
1 parent ff3c7cd commit c2c5cfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 74 deletions.
5 changes: 2 additions & 3 deletions src/Contracts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {CeloChains} from "./CeloChains.sol";
import {stdJson} from "forge-std/StdJson.sol";
import {IRegistry} from "./interfaces/IRegistry.sol";
import {CELO_REGISTRY_ADDRESS} from "./Constants.sol";
import {toString} from "./Utils.sol";

struct CreateTx {
address contractAddress;
Expand Down Expand Up @@ -57,7 +56,7 @@ abstract contract Contracts is CeloChains {
string memory root = vm.projectRoot();
string memory path = string(
abi.encodePacked(
root, "/broadcast/", script, ".sol/", toString(block.chainid), "/", "run-", timestamp, ".json"
root, "/broadcast/", script, ".sol/", vm.toString(block.chainid), "/", "run-", timestamp, ".json"
)
);

Expand Down Expand Up @@ -149,7 +148,7 @@ abstract contract Contracts is CeloChains {
function _lookupDependencies(string memory contractName) private view returns (address payable) {
bytes memory contractAddressRaw = dependencies.parseRaw(
// solhint-disable-next-line quotes
string(abi.encodePacked('["', toString(block.chainid), '"]', '["', contractName, '"]'))
string(abi.encodePacked('["', vm.toString(block.chainid), '"]', '["', contractName, '"]'))
);

if (contractAddressRaw.length != 32) {
Expand Down
71 changes: 0 additions & 71 deletions src/Utils.sol

This file was deleted.

0 comments on commit c2c5cfc

Please sign in to comment.