Add GetVar(inputIndex, varId) + fix Context.getVar #785
Labels
6.0
Functionality needed for Ergo v6.0 (interpreter v3)
Bounty - 100 ERG
bounty
Bounty for resolving the issue
Add a new method CONTEXT.getVarFromInput[T](inputIndex, varId) to read other input's context extension values.
Type definition:
Note that if getVarFromInput[T] is called and context variable is some other type U, then it should return None instead of an error, unlike getVar.
Also fix CONTEXT.getVar[T] method, in sigmastate-interpreter the method was implemented but with broken (de)serialization. In sigma-rust the method does not seem to be implemented at all (only global getVar Opcode). Add the getVar[T] method call and serialize T using explicit_type_args (see: #773 for how explicit type args are used)
Reference: ergoplatform/sigmastate-interpreter#1016
The text was updated successfully, but these errors were encountered: