-
Notifications
You must be signed in to change notification settings - Fork 0
Remove MPC validation #13
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
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.
Seems alright.
Not sure about the change from || to && and how its relevant here. There is a TODO that should be removed and an error message that should be changed based on the or and condition change.
Note that this now exposes us to spam because anyone can call the agent.
const metadata = JSON.parse(metadataHeader ?? "{}"); | ||
const { accountId, evmAddress } = metadata; | ||
if (!accountId || !evmAddress) { | ||
if (!accountId && !evmAddress) { |
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 think we should still be erroring if only one is provided? Why was this change included here?
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.
This can be refined but we don't need to have both to create evm transactions anymore
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.
Also not that we are not actually validating that the evm Address is an evm address anymore. Before it was indirectly implied by the call to getAddress before.
Co-authored-by: Benjamin Smith <bh2smith@users.noreply.github.com>
Co-authored-by: Benjamin Smith <bh2smith@users.noreply.github.com>
IMO that should be done by the runtime |
No description provided.