cashscript
cashscript copied to clipboard
Can't redefine variables in tuples
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];
}