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