Skip to content

Commit

Permalink
disable failing test until KeysWithValue module is re-enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Aug 31, 2023
1 parent b444412 commit 8d8c89e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/minimal/packages/contracts/test/CounterTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ contract CounterTest is MudTest {
assertEq(counter, 2);
}

function testKeysWithValue() public {
uint32 counter = CounterTable.get();
bytes32[] memory keysWithValue = getKeysWithValue(CounterTableTableId, CounterTable.encode(counter));
assertEq(keysWithValue.length, 1);
}
// TODO: re-enable the KeysWithValueModule in mud.config.ts once it supports singleton keys
// function testKeysWithValue() public {
// uint32 counter = CounterTable.get();
// bytes32[] memory keysWithValue = getKeysWithValue(CounterTableTableId, CounterTable.encode(counter));
// assertEq(keysWithValue.length, 1);
// }
}

0 comments on commit 8d8c89e

Please sign in to comment.