Skip to content

Commit

Permalink
fix async mns constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Oct 25, 2024
1 parent adec2ba commit ce9c9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/contracts-wrappers/mns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export const MNS_CONTRACTS = {
*/

export class MNS extends SmartContract {
static async mainnet(provider: Provider): Promise<MNS> {
static mainnet(provider: Provider): MNS {
checkNetwork(provider, true)
return new MNS(provider, MNS_CONTRACTS.mainnet)
}

static async buildnet(provider: Provider): Promise<MNS> {
static buildnet(provider: Provider): MNS {
checkNetwork(provider, false)
return new MNS(provider, MNS_CONTRACTS.buildnet)
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/mns.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('MNS tests', () => {
const syntraContract = 'AS1hyi3cyBocobFtFZHhTs84mTLhThDK4KvCkj6bijbtHEi3d8Vv'

beforeAll(async () => {
mns = await MNS.buildnet(provider)
mns = MNS.buildnet(provider)
})

test('resolve', async () => {
Expand Down

1 comment on commit ce9c9ed

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for experimental massa-web3

St.
Category Percentage Covered / Total
🟡 Statements 63.88% 1153/1805
🔴 Branches 46.43% 195/420
🔴 Functions 46.98% 210/447
🟡 Lines 64.17% 1146/1786

Test suite run success

131 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from ce9c9ed

Please sign in to comment.