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

BN conversion error with high stake amount (1000 tokens) #1014

Open
SergeevDmitry opened this issue May 15, 2024 · 0 comments
Open

BN conversion error with high stake amount (1000 tokens) #1014

SergeevDmitry opened this issue May 15, 2024 · 0 comments

Comments

@SergeevDmitry
Copy link

Describe the bug
Hello. I setup GSN for my test network. I did set required stake amount to 1000 tokens. When I try to register new relay with --stake 1000 option it produces the following error

Failed to register relay: Error: [number-to-bn] while converting number 1e+21 to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "1e+21"

Steps To Reproduce
Steps to reproduce the behavior:

  1. Set required stake amount to 1000 tokens
  2. Run gsn relayer-register --stake 1000

Expected behavior
Command should parse high amounts without errors

Console Logs and/or Screenshots

Failed to register relay: Error: [number-to-bn] while converting number 1e+21 to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "1e+21"
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

No branches or pull requests

1 participant