Skip to content

Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.7.0) #2810

Discussion options

You must be logged in to vote

Hey @decentralized-86 in your lottery.sol code, change uint16 callbackGasLimit in the constructor to uint32 callbackGasLimit You are getting this error because the callbackGasLimit value you are passing (500000) is way above what uint16 can accomodate (65535)
Tell me if it fixes your issue.

Replies: 5 comments 23 replies

Comment options

You must be logged in to vote
8 replies
@haseebmalikk
Comment options

@CHYGO1985
Comment options

@teerth17
Comment options

@alymurtazamemon
Comment options

@mikechaban
Comment options

Comment options

You must be logged in to vote
7 replies
@othaime-en
Comment options

@decentralized-86
Comment options

@othaime-en
Comment options

@decentralized-86
Comment options

@khaleedo
Comment options

Comment options

You must be logged in to vote
5 replies
@decentralized-86
Comment options

@othaime-en
Comment options

@fmsarp
Comment options

@NathanBrews
Comment options

@NathanBrews
Comment options

Answer selected by decentralized-86
Comment options

You must be logged in to vote
2 replies
@Glow-in-the-dark
Comment options

@tamoghna-dey
Comment options

Comment options

You must be logged in to vote
1 reply
@vishnu-geek
Comment options

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