ergoplatform / sigmastate-interpreter

ErgoScript compiler and ErgoTree Interpreter implementation for Ergo blockchain
MIT License
63 stars 41 forks source link

[6.0] GetVar(inputIndex, varId) for reading context variable from another input and fix for Context.getVar #1016

Closed kushti closed 1 month ago

kushti commented 5 months ago

This PR contains:

     {
         val idx = CONTEXT.selfBoxIndex
         sigmaProp(CONTEXT.getVarFromInput[Int](idx.toShort, 1.toByte).get == 5)
     }
kushti commented 1 month ago

@aslesarenko comments addressed , please make another pass