Closed AmbroseHill closed 2 years ago
Commenting out the lines below fixes the compilation.
const newX = x.set(0,this);
interact.log(newX);
I'm going to pushing a fix shortly, but in this case, the "problem" is that Reach isn't catching an error in your program and it is getting through to a later stage and you get a weird error.
This line const newX = x.set(0,this);
is wrong, because x
is an array of Maybe(Address)
but this
is an Address
, so it can't be assigned there. You want x.set(0, mAddress.Some(this))
The above code gives the following output when trying to run or compile: