Hey I followed this tutorial and got this error:
error: redefinition of built-in assembler function `cons`
forall X -> tuple cons(X head, tuple tail) asm "CONS";
.
.
.
raise ValueError(f"😥 No address_text found in {contract.address}")
ValueError: 😥 No address_text found in C:\Users\[my-username]\AppData\Local\toncli\toncli\wallet/build/contract_address

Oct 22, 2022, 8:05 PM
should I install toncli on linux for better development exprience?
Oct 22, 2022, 8:06 PM
Just comment all duplicating functions in your code
Oct 22, 2022, 8:18 PM
I understand it seems like a c/c++ duplicate identifier error. but code is rather simple:
() recv_internal(slice in_msg_body) impure {
throw_if(35,in_msg_body.slice_bits() < 32);

int n = in_msg_body~load_uint(32);

slice ds = get_data().begin_parse();
int total = ds~load_uint(64);

total += n;

set_data(begin_cell().store_uint(total, 64).end_cell());
}

int get_total() method_id {
slice ds = get_data().begin_parse();
int total = ds~load_uint(64);

return total;
}
And I'm running :
toncli deploy -n testnet
Just use old gold ubuntu. windows is error prone for Ton development
ubuntu is ok
Oct 22, 2022, 10:05 PM

© 2024 Draquery.com All rights reserved.