contracts.wallets.library-deployer.fc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartcontract Show documentation
Show all versions of smartcontract Show documentation
Build and manipulate TON smart contracts in easy way.
#pragma version =0.4.4;
#include "stdlib.fc";
() set_lib_code(cell code, int mode) impure asm "SETLIBCODE";
() deploy_lib() impure {
set_lib_code(get_data(), 2);
cell empty = begin_cell().end_cell();
dump_stack();
set_code(empty);
set_data(empty);
}
() recv_internal() impure {
deploy_lib();
}
() recv_external() impure {
deploy_lib();
}