You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ABI parser expects any function to be named. In some cases it would be useful to encode constructor args. (address) for example doesn't work. One way would be to reserve the constructor keyword in the lexer.
There is one hacky way to do this rn. w3.Func exposes Func.Args of the "raw" geth type ab.Arguments. So you could use the constructorFunc from your example to call constructorFunc.Args.Pack.
This is definitely within the scope of w3. The problem is I don't really have a good idea how to handle constructors. Not sure if it is safe to reserve the "constructor" name. Does it even make sense to encode arguments without the deploy bytecode? How would you handle this in your code-example?
The ABI parser expects any function to be named. In some cases it would be useful to encode constructor args.
(address)
for example doesn't work. One way would be to reserve theconstructor
keyword in the lexer.Not sure if this is within scope of w3 or should the abi package (abi.Pack) from geth be used instead.
The text was updated successfully, but these errors were encountered: