Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underlying test #63

Merged
merged 4 commits into from
Oct 20, 2022
Merged

Underlying test #63

merged 4 commits into from
Oct 20, 2022

Conversation

Flip-Liquid
Copy link
Contributor

DRY tests; add test for checking underlying after exercise

Adding test for #50

@0xAlcibiades 0xAlcibiades self-requested a review October 7, 2022 20:28
src/test/OptionSettlement.t.sol Outdated Show resolved Hide resolved
@Flip-Liquid Flip-Liquid changed the title Underlying test [WIP] Underlying test Oct 9, 2022
@Flip-Liquid Flip-Liquid changed the title [WIP] Underlying test Underlying test Oct 17, 2022
@0xAlcibiades 0xAlcibiades merged commit a76989d into master Oct 20, 2022
@0xAlcibiades 0xAlcibiades deleted the master_underlying_data_issue branch October 20, 2022 16:20
@@ -411,7 +411,7 @@ contract OptionSettlementEngine is ERC1155, IOptionSettlementEngine {
function underlying(uint256 tokenId) external view returns (Underlying memory underlyingPositions) {
(uint160 optionId, uint96 claimIdx) = getDecodedIdComponents(tokenId);

if (!_isOptionInitialized(optionId)) {
if (!isOptionInitialized(optionId)) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason you didn't use the private accessor here?

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.

2 participants