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

fix: Cancel zero address as the default from address #1073

Merged
merged 4 commits into from
May 25, 2023

Conversation

classicalliu
Copy link
Contributor

@classicalliu classicalliu commented May 23, 2023

Related:

zero address deposited in godwoken block 372398, so when eth_call requires execute before this block and use zero address as default from will failed

So using first EOA account as default from address will resolve the problem

@classicalliu classicalliu requested a review from a team as a code owner May 23, 2023 10:00
@classicalliu classicalliu linked an issue May 23, 2023 that may be closed by this pull request
@@ -437,7 +432,7 @@ function toApiNodeInfo(nodeInfo: GwNodeInfo): NodeInfo {
return snakeToCamel(nodeInfo, ["code_hash", "hash_type"]);
}

async function zeroAddressAccount(
async function _zeroAddressAccount(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please delete this function.

Copy link
Contributor Author

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(
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

Flouse
Flouse previously approved these changes May 25, 2023
@jjyr jjyr enabled auto-merge May 25, 2023 09:30
@jjyr jjyr requested a review from Flouse May 25, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] graph-node error: Possible reorg detected
3 participants