Use console 2 standard and remove typo

This commit is contained in:
itzelot01 2023-12-05 22:44:17 +00:00
parent e6fd2a58a8
commit 73b3806f38
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Script.sol";
import {Script, console2} from "forge-std/Script.sol";
import { DCO2s } from "src/DCO2s.sol";
contract DCO2sScript is Script {
@ -9,7 +9,7 @@ contract DCO2sScript is Script {
function setUp() public {
dco2sc = new DCO2s(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, "DCO2s", "DCO2");
console.log("The DCO2s contract address is: {}", address(dco2sc));
console2.log("The DCO2s contract address is: ", address(dco2sc));
}
// run is the entry point
@ -20,7 +20,7 @@ contract DCO2sScript is Script {
string memory URI = "bafkreibc6p3y36yjmeqqnttqfrpb2yttxa6aonoywxwdxl7nqym4jj3jwa";
dco2sc.safeMint(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, URI);
string memory tokenURI = dco2sc.tokenURI(0);
console.log(tokenURI);
console2.log("Token0 URI is:", tokenURI);
vm.stopBroadcast();
}
}