Skip to content

Foundry migration#57

Merged
0xLaz3r merged 12 commits intomasterfrom
foundry-migration
Mar 31, 2026
Merged

Foundry migration#57
0xLaz3r merged 12 commits intomasterfrom
foundry-migration

Conversation

@0xLaz3r
Copy link
Copy Markdown
Contributor

@0xLaz3r 0xLaz3r commented Mar 2, 2026

Migrate from dapp-tools to Foundry framework

Included the fix for one pre-existing failing test

Closes #56

@0xLaz3r 0xLaz3r self-assigned this Mar 2, 2026
Comment thread scripts/test.sh Outdated
Comment thread .github/workflows/tests.yaml Outdated
Comment thread src/OmegaPoker.t.sol Outdated
Comment thread src/OmegaPoker.t.sol Outdated
Comment on lines +216 to +218
assertTrue(uniqueOsmIlk != bytes32(0));
assertTrue(sharedOsmIlk != bytes32(0));
assertTrue(noOsmIlk != bytes32(0));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to prove here? That there is at least one ilk that is unique, at least one that is shared and at least one that doesn't have an OSM?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, to test all the scenarios. If it makes more sense, I can just make it optional and prove that the test works for the existing types of ilks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't think those assertions add a lot of value tbh.
Let's focus on the problem the OmegaPoker tries to solve.

@0xLaz3r 0xLaz3r force-pushed the foundry-migration branch from 4fb5abb to ca19fd3 Compare March 3, 2026 09:04
Copy link
Copy Markdown
Contributor

@amusingaxl amusingaxl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread .github/workflows/tests.yaml Outdated
Comment thread src/OmegaPoker.t.sol
Comment thread src/OmegaPoker.t.sol
Comment thread Makefile Outdated
Comment thread src/OmegaPoker.t.sol
Copy link
Copy Markdown

@SidestreamBurningBanana SidestreamBurningBanana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving after being able to run the tests and deploy locally using scripts from updated Makefile:

[⠊] Compiling...
[⠢] Compiling 23 files with Solc 0.6.12
[⠆] Solc 0.6.12 finished in 1.15s
Compiler run successful!

Ran 1 test for src/MegaPoker.t.sol:MegaPokerTest
[PASS] test_poke() (gas: 754305)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 5.84s (4.93s CPU time)

Ran 6 tests for src/OmegaPoker.t.sol:OmegaPokerTest
[PASS] testPoke() (gas: 855538)
[PASS] testPokeCost() (gas: 804253)
[PASS] testRefresh() (gas: 842893)
[PASS] testRefreshCost() (gas: 360381)
[PASS] testRefreshZeroPip() (gas: 524302)
[PASS] test_poke() (gas: 804525)
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 8.21s (11.95s CPU time)

Ran 2 test suites in 27.65s (14.05s CPU time): 7 tests passed, 0 failed, 0 skipped (7 total tests)
[⠊] Compiling...
No files changed, compilation skipped
Enter keystore password:
Deployer: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Deployed to: 0x503B47B13a02DA3Eb3f592F6c4aF312D1962c6D7
Transaction hash: 0x984e7ccad01d058fe97d524a0b7457e24ed8c5f4840a068837c66f373cfd3c01

@0xLaz3r 0xLaz3r merged commit 83bd1a6 into master Mar 31, 2026
3 checks passed
@0xLaz3r 0xLaz3r deleted the foundry-migration branch March 31, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move configs from Makefile to foundry.toml

3 participants