I want to pass address of a wallet. how to receive it in my smart contract in .fc file.?
Feb 17, 2023, 11:13 AM
const a = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"a
Feb 17, 2023, 11:26 AM
no bro. like I want to have an address in recv_internal(), so that I can send message to that address...
Feb 17, 2023, 11:27 AM
in_msg_body~load_msg_addr()
Feb 17, 2023, 12:02 PM
can you see, I want to pass something like this...
how to receive it in .fc file
Feb 17, 2023, 12:05 PM
^
Feb 17, 2023, 12:09 PM
int op = in_msg_body~load_uint(32);
...
slice to_addr = in_msg_body~load_msg_addr();
...
slice to_addr = in_msg_body~load_msg_addr();
Feb 17, 2023, 12:09 PM
when you want to return a slice from a function in .fc file, then to read in .ts file from stack?
can we directly access the value of any global variable like we do in other languages?
Feb 17, 2023, 1:58 PM
Yes
Feb 17, 2023, 2:03 PM
you mean we can do this... right?
...
Feb 17, 2023, 2:04 PM
Yes
Feb 17, 2023, 2:05 PM
ok great
Feb 17, 2023, 2:11 PM
How it's different from "get_data().begin_parse()"?
Feb 17, 2023, 2:19 PM
its get method
Feb 17, 2023, 2:22 PM
I can be wrong, buy I think global params are not initialized at the beginning of execution
You can use load data to populate global params
Feb 17, 2023, 2:23 PM
What site can i use to run "get_XXX()"?
Feb 17, 2023, 2:26 PM
Ton verifier
Feb 17, 2023, 2:27 PM
Is it possible on test net?
Feb 17, 2023, 2:34 PM
Probably not
Feb 17, 2023, 2:35 PM
Do you have "op::take_excess()" example?
Feb 17, 2023, 2:54 PM
usage https://github.com/markokhman/sbt-kingyton/blob/6c2619e6d861e25b43fc6cdd0e9ac82014ddb8e4/src/contract/sbt-item.fc
179 line
179 line
use github for things like this,
https://github.com/search?q=op%3A%3Atake_excess&type=code
https://github.com/search?q=op%3A%3Atake_excess&type=code
Feb 17, 2023, 2:58 PM