Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Aug 5, 2024
1 parent 2541230 commit 6d52bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions template/ts/files/tests/common/onlinechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export class Onlinechain {
});
}

async proxyAdminOwner(oci: OnlineChainInfo) {
const {chain, contract} = oci;
async proxyAdminOwner(oci: OnlineChainInfo): Promise<string> {
const {contract} = oci;
return await contract.proxyAdmin?.owner();
}

Expand Down
3 changes: 2 additions & 1 deletion template/ts/files/tests/helixconf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ describe.each(TestSource.chains())
}
const oci = await oc.onlinechain(chain);
const owner = await oc.proxyAdminOwner(oci);
expect(chain.additional.dao.toLowerCase()).toBe(owner.toLowerCase());
expect(owner).toBeTruthy();
expect(chain.additional.dao.toLowerCase()).toBe(owner!.toLowerCase());
});

describe.each(messagers)(`check messager [${code}]: $name`, message => {
Expand Down

0 comments on commit 6d52bce

Please sign in to comment.