Closed j-mueller closed 5 years ago
Ugh, I forgot that the resize functions need to pass term-level size values...
Argh, this is actually somewhat difficult.
So, term-level sizes are a pain because they're multi-part constants including a constant natural size that we can't supply separately. This makes them a complete pain.
So here's my horrible idea:
sizeOfInteger
when converting to PLC to get an appropriate size.Producing integer literals at a particular size is essentially just as hard, oy vey.
Closing this as we don't have sizes in Plutus Core anymore.
Compiling this program:
results in
To reproduce, checkout the
resize-bytestring
branch, then