Skip to content

400 Error, overspend account #936

Answered by hmzdot
hmzdot asked this question in Q&A
May 9, 2022 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

This generally happens when standard library version doesn't match with the version of reach compiler contracts are compiled with

Reasoning:
When a new test account is created it is funded with a starting balance from an account called "faucet".
This account's address changes with each version so whenever there's a new update, trying to take funds from a previous one which has no tokens results with an overspend account error

Mitigation:

  • Stop old instances of reach: ./reach down; ./reach docker-reset
  • Update reach compiler: ./reach update
  • Recompile existing contracts: ./reach compile
  • Update your standard library on the frontend, if there's one: npm update @reach-sh/stdlib

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@xxiled-plastic-cat
Comment options

@jeapostrophe
Comment options

@xxiled-plastic-cat
Comment options

@jeapostrophe
Comment options

@xxiled-plastic-cat
Comment options

Answer selected by hmzdot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants