1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/crypto/func/auto-tests/legacy_tests/bsc-bridge-collector/bridge-config.fc
EmelyanenkoK 6b49d6a382
Add legacy_tester for existing funC contracts (#588)
* Add legacy_tester for existing funC contracts

* Add storage-contracts and pragma options
2023-01-12 12:33:15 +03:00

13 lines
465 B
Text

(int, int, cell) get_bridge_config() impure inline_ref {
cell bridge_config = config_param(72);
if (bridge_config.cell_null?()) {
bridge_config = config_param(-72);
}
throw_if(666, bridge_config.cell_null?());
slice ds = bridge_config.begin_parse();
;; wc always equals to -1
int bridge_address = ds~load_uint(256);
int oracles_address = ds~load_uint(256);
cell oracles = ds~load_dict();
return (bridge_address, oracles_address, oracles);
}