@stdlib/config
Provides functions for config and elector Address retrieval.
To use this library, import @stdlib/config
:
import "@stdlib/config";
Functions
getConfigAddress
fun getConfigAddress(): Address;
Retrieves config parameter as an Address
.
Source code:
fun getConfigAddress(): Address {
let cell: Cell = getConfigParam(0)!!;
let sc: Slice = cell.beginParse();
return newAddress(-1, sc.loadUint(256));
}
getElectorAddress
fun getElectorAddress(): Address;
Retrieves config parameter as an Address
.
Source code:
fun getElectorAddress(): Address {
let cell: Cell = getConfigParam(1)!!;
let sc: Slice = cell.beginParse();
return newAddress(-1, sc.loadUint(256));
}