This commit is contained in:
aozhiwei 2023-06-14 10:15:28 +08:00
parent 771bb9e434
commit aa55a479c4
3 changed files with 8 additions and 1 deletions

View File

@ -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() {

View File

@ -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) {