Hello guys, is there a way to get the contract init code without storing the init code in the contract's storage? I remember a feature of some sort had launch for FunC that made it possible, if I'm not mistaken.
Jul 19, 2023, 4:23 AM
what do you mean by "get the contract init code"?
Jul 19, 2023, 4:24 AM
The one I used to deploy the contract
If it's upgradeable
Jul 19, 2023, 4:25 AM
and where do you need to "get it"?
Jul 19, 2023, 4:25 AM
wallet contract
Currently using get_c3
Jul 19, 2023, 4:26 AM
and why do you need some other solution?
Jul 19, 2023, 4:26 AM
In case it's upgradeable, but think it may suffice for now
Jul 19, 2023, 4:26 AM
c3 contains the current code of the contract. if you change it after the deployment, c3 will change too.
Jul 19, 2023, 4:27 AM
I see... I thought I had seem a different solution for that, might be mistaken
It's fine I think, probably not gonna make it upgradeable hehe
Jul 19, 2023, 4:28 AM
I think you're talking about the new TVM instruction called MYCODE:
https://docs.ton.org/learn/tvm-instructions/tvm-upgrade-2023-07#opcodes-to-work-with-new-c7-values
https://docs.ton.org/learn/tvm-instructions/tvm-upgrade-2023-07#opcodes-to-work-with-new-c7-values
Jul 19, 2023, 5:26 AM
What is the c7 register? Can anyone explain it to me as if I were a 3-year-old?
- https://docs.ton.org/learn/tvm-instructions/tvm-initialization#control-register-c7
- https://github.com/ton-community/ton-contract-executor
- https://docs.ton.org/learn/tvm-instructions/tvm-initialization#control-register-c7
- https://github.com/ton-community/ton-contract-executor
Jan 20, 2024, 6:32 PM