-
Notifications
You must be signed in to change notification settings - Fork 506
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
position descriptor proxy tests #427
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 comment otherwise looks good
test/PositionDescriptor.t.sol
Outdated
@@ -48,46 +48,46 @@ contract PositionDescriptorTest is Test, PosmTestSetup { | |||
} | |||
|
|||
function test_bytecodeSize_positionDescriptor() public { | |||
vm.snapshotValue("positionDescriptor bytecode size", address(positionDescriptor).code.length); | |||
vm.snapshotValue("positionDescriptor bytecode size", address(proxyAsImplementation).code.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave this as a snapshot on the actual position descriptor bytecode & then I'd just add one for the proxy too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes meant to do that
} | ||
|
||
/// @notice Returns the native currency label as a string | ||
function nativeCurrencyLabel() public view returns (string memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would love to see unit tests for this function
Related Issue
testing position descriptor as proxy
Description of changes