Open mr-zwets opened 1 year ago
It would be clean if cashscript allowed to redefine variables in tuples, for example:
bytes variableA = 0x00; bytes variableB = 0x00; if(condition){ variableA,variableB = bytesequence.split(index); }
Currently the workaround is
bytes variableA = 0x00; bytes variableB = 0x00; if(condition){ variableA = bytesequence.split(index)[0]; variableB = bytesequence.split(index)[1]; }
It would be clean if cashscript allowed to redefine variables in tuples, for example:
Currently the workaround is