Use console 2 standard and remove typo
This commit is contained in:
parent
e6fd2a58a8
commit
73b3806f38
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-License-Identifier: UNLICENSED
|
// SPDX-License-Identifier: UNLICENSED
|
||||||
pragma solidity ^0.8.13;
|
pragma solidity ^0.8.13;
|
||||||
|
|
||||||
import "forge-std/Script.sol";
|
import {Script, console2} from "forge-std/Script.sol";
|
||||||
import { DCO2s } from "src/DCO2s.sol";
|
import { DCO2s } from "src/DCO2s.sol";
|
||||||
|
|
||||||
contract DCO2sScript is Script {
|
contract DCO2sScript is Script {
|
||||||
|
@ -9,7 +9,7 @@ contract DCO2sScript is Script {
|
||||||
|
|
||||||
function setUp() public {
|
function setUp() public {
|
||||||
dco2sc = new DCO2s(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, "DCO2s", "DCO2");
|
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
|
// run is the entry point
|
||||||
|
@ -20,7 +20,7 @@ contract DCO2sScript is Script {
|
||||||
string memory URI = "bafkreibc6p3y36yjmeqqnttqfrpb2yttxa6aonoywxwdxl7nqym4jj3jwa";
|
string memory URI = "bafkreibc6p3y36yjmeqqnttqfrpb2yttxa6aonoywxwdxl7nqym4jj3jwa";
|
||||||
dco2sc.safeMint(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, URI);
|
dco2sc.safeMint(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, URI);
|
||||||
string memory tokenURI = dco2sc.tokenURI(0);
|
string memory tokenURI = dco2sc.tokenURI(0);
|
||||||
console.log(tokenURI);
|
console2.log("Token0 URI is:", tokenURI);
|
||||||
vm.stopBroadcast();
|
vm.stopBroadcast();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue