1
This commit is contained in:
parent
771bb9e434
commit
aa55a479c4
@ -12,12 +12,16 @@ class BlockChain extends BaseService {
|
|||||||
|
|
||||||
#bc = null;
|
#bc = null;
|
||||||
|
|
||||||
|
async staticInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
async init(netId) {
|
async init(netId) {
|
||||||
this.#bc = getBc(netId);
|
this.#bc = getBc(netId);
|
||||||
}
|
}
|
||||||
|
|
||||||
getNftAddress(tokenType) {
|
getNftAddress(tokenType) {
|
||||||
|
return this.#bc.getNftAddress(tokenType);
|
||||||
}
|
}
|
||||||
|
|
||||||
async soliditySha3Sign() {
|
async soliditySha3Sign() {
|
||||||
|
@ -8,6 +8,9 @@ async function internalAdd(clsName, modName, isSingle) {
|
|||||||
'class': modClass,
|
'class': modClass,
|
||||||
'isSingle': isSingle
|
'isSingle': isSingle
|
||||||
};
|
};
|
||||||
|
if (modClass.staticInit) {
|
||||||
|
await modClass.staticInit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function add(clsName, modName) {
|
async function add(clsName, modName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user