File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.22 ;
2+ pragma solidity ^ 0.8.23 ;
33
44import {Script, console} from "forge-std/Script.sol " ;
55import {IPCM} from "../src/IPCM.sol " ;
@@ -12,7 +12,7 @@ contract IPCMScript is Script {
1212 function run () public {
1313 vm.startBroadcast ();
1414
15- ipcm = new IPCM (msg .sender , " ipfs:// " );
15+ ipcm = new IPCM (msg .sender );
1616
1717 vm.stopBroadcast ();
1818 }
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
22// Compatible with OpenZeppelin Contracts ^5.0.0
3- pragma solidity ^ 0.8.22 ;
3+ pragma solidity ^ 0.8.23 ;
44
55import {Ownable} from "../lib/openzeppelin-contracts/contracts/access/Ownable.sol " ;
66
77contract IPCM is Ownable {
88 string private cidMapping;
99
10- constructor (address owner , string memory initialCID ) Ownable (owner) {
11- cidMapping = initialCID;
12- }
10+ constructor (address owner ) Ownable (owner) {}
1311
1412 event MappingUpdated (string value );
1513
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.22 ;
2+ pragma solidity ^ 0.8.23 ;
33
44import {Test, console} from "forge-std/Test.sol " ;
55import {IPCM} from "../src/IPCM.sol " ;
@@ -10,7 +10,7 @@ contract IPCMTest is Test {
1010 string testCid = "QmTest123 " ;
1111
1212 function setUp () public {
13- ipcm = new IPCM (owner, testCid );
13+ ipcm = new IPCM (owner);
1414 vm.startPrank (owner);
1515 }
1616
@@ -32,6 +32,7 @@ contract IPCMTest is Test {
3232 }
3333
3434 function testGetValue () public {
35+ ipcm.updateMapping (testCid);
3536 string memory initialValue = ipcm.getMapping ();
3637 assertEq (initialValue, testCid);
3738
You can’t perform that action at this time.
0 commit comments