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
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)
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: