-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
micro-eth-signer issue when deploying local accounts #6017
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
hardhatTotal size of the bundle: List of dependencies (sorted by size)
|
...nternal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.ts
Show resolved
Hide resolved
...nternal/builtin-plugins/network-manager/request-handlers/handlers/accounts/local-accounts.ts
Outdated
Show resolved
Hide resolved
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 left two small comments, but it looks good.
@@ -14,6 +14,7 @@ export const rpcAddress: ZodType<Uint8Array> = conditionalUnionType( | |||
z.instanceof(Uint8Array), | |||
], | |||
[isAddress, z.string()], | |||
[(data) => data === null, z.null()], |
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.
wouldn't this also affect from
?
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.
Yes, I allowed the null value only for the "to" field here
a187ca1
to
756248a
Compare
The branch for this PR was checked out from this other PR.
This PR adds logic to handle transactions sent to the null address:
micro-eth-signer
to handle transactions directed to the null address. See release notes.micro-eth-signer
for processing transactions to the null address.NOTES:
If the "to" field and the "data" field are explicitly set to null, a
zod
validation error will be thrown.