Does anyone know how to solve this?

error: lvalue expected before ~load_uint
$rarity = begin_parse($payload)~load_uint(8);
šŸ’„ Compilation failed. Skipping packaging

Oct 25, 2023, 11:25 AM
Yes! Though, do you use Tact or FunC?
Oct 25, 2023, 11:31 AM
tact, happens on compile stage
Oct 25, 2023, 11:32 AM
You should split payload.beginParse().loadUint(8) into two lines.
let payloadSlice: Slice = payload.beginParse();
... payloadSlice.loadUint(8)
Oct 25, 2023, 11:32 AM
Thanks!
Oct 25, 2023, 11:34 AM

Ā© 2024 Draquery.com All rights reserved.