From ce9c9edf1620ade02c4ff8cc92d676383c10cbfc Mon Sep 17 00:00:00 2001 From: Pierre Seznec Date: Fri, 25 Oct 2024 18:53:20 +0200 Subject: [PATCH] fix async mns constructor --- src/contracts-wrappers/mns.ts | 4 ++-- test/integration/mns.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/contracts-wrappers/mns.ts b/src/contracts-wrappers/mns.ts index 0e7e946f..0dea2dce 100644 --- a/src/contracts-wrappers/mns.ts +++ b/src/contracts-wrappers/mns.ts @@ -27,12 +27,12 @@ export const MNS_CONTRACTS = { */ export class MNS extends SmartContract { - static async mainnet(provider: Provider): Promise { + static mainnet(provider: Provider): MNS { checkNetwork(provider, true) return new MNS(provider, MNS_CONTRACTS.mainnet) } - static async buildnet(provider: Provider): Promise { + static buildnet(provider: Provider): MNS { checkNetwork(provider, false) return new MNS(provider, MNS_CONTRACTS.buildnet) } diff --git a/test/integration/mns.spec.ts b/test/integration/mns.spec.ts index 12f016ad..ce92d8cf 100644 --- a/test/integration/mns.spec.ts +++ b/test/integration/mns.spec.ts @@ -8,7 +8,7 @@ describe('MNS tests', () => { const syntraContract = 'AS1hyi3cyBocobFtFZHhTs84mTLhThDK4KvCkj6bijbtHEi3d8Vv' beforeAll(async () => { - mns = await MNS.buildnet(provider) + mns = MNS.buildnet(provider) }) test('resolve', async () => {