Skip to content

Commit

Permalink
add storeAddress to MudV2Test
Browse files Browse the repository at this point in the history
dk1a committed Jun 20, 2023
1 parent 3995181 commit caffe53
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/std-contracts/package.json
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@
},
"devDependencies": {
"@latticexyz/solecs": "workspace:*",
"@latticexyz/store": "workspace:*",
"@solidstate/contracts": "^0.0.52",
"@typechain/ethers-v5": "^10.2.0",
"ds-test": "https://github.com/dapphub/ds-test.git#c9ce3f25bde29fc5eb9901842bf02850dfd2d084",
1 change: 1 addition & 0 deletions packages/std-contracts/remappings.txt
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ forge-std/=node_modules/forge-std/src/
solmate/=node_modules/solmate/src
solecs/=node_modules/@latticexyz/solecs/src/
@solidstate/=node_modules/@solidstate/
@latticexyz/=node_modules/@latticexyz/
7 changes: 6 additions & 1 deletion packages/std-contracts/src/test/MudV2Test.t.sol
Original file line number Diff line number Diff line change
@@ -2,11 +2,16 @@
pragma solidity >=0.8.0;

import "forge-std/Test.sol";
import { IStoreConsumer } from "@latticexyz/store/src/StoreConsumer.sol";

contract MudV2Test is Test {
contract MudV2Test is Test, IStoreConsumer {
address worldAddress;

function setUp() public virtual {
worldAddress = vm.parseAddress(vm.readFile(".mudtest"));
}

function storeAddress(address) public view returns (address) {
return worldAddress;
}
}

0 comments on commit caffe53

Please sign in to comment.