-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix: Cancel zero address as the default from address #1073
Conversation
@@ -437,7 +432,7 @@ function toApiNodeInfo(nodeInfo: GwNodeInfo): NodeInfo { | |||
return snakeToCamel(nodeInfo, ["code_hash", "hash_type"]); | |||
} | |||
|
|||
async function zeroAddressAccount( | |||
async function _zeroAddressAccount( |
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.
Please delete this function.
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.
Updated
@@ -237,11 +236,6 @@ export class GwConfig { | |||
private async fetchDefaultFromAccount( |
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 comment // Using zero address firstly
could be deleted?
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.
Updated
Related:
Possible reorg detected
#1067zero address deposited in godwoken block 372398, so when
eth_call
requires execute before this block and use zero address as default from will failedSo using first EOA account as default from address will resolve the problem