Skip to content

How to explicitly mark an instance of frontend.Variable as constant, or create so? #1041

Answered by gbotrel
weijiguo asked this question in Q&A
Discussion options

You must be logged in to vote

hi -- anything you pass to an frontend.API will be a constant (if it's not a variable :)). So:

api.Mul(1,2)
a := big.NewInt(...)
api.Mul(a, 2)

are all constant params.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@weijiguo
Comment options

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