Skip to content

Conversation

@robertabbott
Copy link
Contributor

Description

Adds safeCastTo16

Checklist

  • Ran forge snapshot?
  • Ran npm run lint?
  • Ran forge test?

SafeCastLib.safeCastTo24(x);
}

function testFailSafeCastTo16(uint256 x) public {
Copy link
Owner

Choose a reason for hiding this comment

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

missing a testSafeCastTo16

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

you've got a concrete success test, but need a successful fuzz test too hehe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i hate when i'm an idiot - added the test

@transmissions11 transmissions11 changed the title Adds safeCastTo16 ✅ Add safeCastTo16 Sep 1, 2022
@transmissions11 transmissions11 merged commit 10fc959 into transmissions11:main Sep 1, 2022
@robertabbott robertabbott deleted the bobby-safe-to-16 branch September 1, 2022 16:42
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