cannot call a method through recv_internal in my smart contract. i'm using a Blueprint for testing.
calling method by sending an internal message with this code:
async sendRemove( provider: ContractProvider, via: Sender, value: bigint )
{
await provider.internal(via, {
value,
sendMode: SendMode.PAY_GAS_SEPARATELY,
body: beginCell()
.storeUint( 0x1234, 32 )
.storeUint( 0, 64 )
.endCell(),
});
}
but contract does not seems to do something with it.
Here is a sources on github:
https://github.com/Hid-K/TONStudy-grade/tree/dev
Jun 17, 2023, 12:00 PM
how can i get smart contract's code from itself for further deploy?
Jun 17, 2023, 1:55 PM
where is your code tho? Can't find
I think you use the wrong way in my first thought.
sendMode: SendMode.PAY_GAS_SEPARATELY is used in FunC level, not in TS file level.
sendMode: SendMode.PAY_GAS_SEPARATELY is used in FunC level, not in TS file level.
Jun 17, 2023, 2:39 PM
i've already fixed this. sorry for interrupting
Jun 17, 2023, 2:40 PM
Current TVM doesn't have this feature, and you have to store smart contract's code as a cell inside data part.
The upcoming new TVM has this feature under instruction MYCODE.
The upcoming new TVM has this feature under instruction MYCODE.
Jun 17, 2023, 6:08 PM
cool! when does this version will be available?
also, how can i get an address of deployed contract through send_raw_message?
Jun 17, 2023, 8:12 PM
Calculate it as a hash of stateinit.
Jun 17, 2023, 8:16 PM
thanks!
Jun 17, 2023, 8:19 PM
On the roadmap, it's scheduled for Q2. So I think it might be released in 2 weeks.
Jun 17, 2023, 8:53 PM