Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Ensure ForkedBlockchain.prototype.getAccount works #623

Closed
mikeseese opened this issue Sep 1, 2020 · 1 comment · Fixed by #627
Closed

Ensure ForkedBlockchain.prototype.getAccount works #623

mikeseese opened this issue Sep 1, 2020 · 1 comment · Fixed by #627
Assignees
Labels

Comments

@mikeseese
Copy link
Contributor

This issue pulls out #3 from #483 (comment):

Yes, I meant ForkedBlockchain.prototype.getAccount. There might be a separate bug in this fn, I haven't checked if there are tests for this scenario yet:

  • contract account A exists at block 9 on the original chain. it has a non-zero balance
  • we fork at block 10
  • we selfdestruct() the contract on our fork at block 11, thus transferring its value to another address.
  • getAccount(account A, block 12) may return the account from the original chain. A call to eth_getBalance may return the non-zero account value.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant