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

wip: debugging #148

Closed
wants to merge 6 commits into from
Closed

wip: debugging #148

wants to merge 6 commits into from

Conversation

cnasc
Copy link
Contributor

@cnasc cnasc commented Feb 20, 2024

What changed? Why?

Notes to reviewers

How has it been tested?

src/index.ts Outdated Show resolved Hide resolved
messageOptions?: FrameMessageOptions,
): Promise<FrameValidationResponse> {
// Skip validation only when allowed and when receiving a debug request
if (messageOptions?.allowDebug) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is a boolean, we should either use has or is as prefix.

so maybe isMockRequest: boolean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case, not every request is necessarily a mock request. I think it's most clear as is: if set, it will allow mock requests to pass through, otherwise it will reject them.

@@ -3179,6 +3191,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "framegear@workspace:."
dependencies:
"@coinbase/onchainkit": "portal:./.."
Copy link
Contributor

Choose a reason for hiding this comment

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

Inteeeeerestinggggggggg

What the heck which magic is this?

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
Contributor Author

Choose a reason for hiding this comment

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

Once we finalize probably want to specify the exact version, but this is great for dev

Copy link
Contributor

Choose a reason for hiding this comment

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

Portal Protocol 🤯

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now you're thinking with portals

@cnasc
Copy link
Contributor Author

cnasc commented Feb 20, 2024

Closing, these features have been incorporated through #149 and #152

@cnasc cnasc closed this Feb 20, 2024
@cnasc cnasc deleted the cjn/validation-testing branch February 20, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants