Skip to content

Commit

Permalink
Some nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladilen11 committed Sep 23, 2023
1 parent eacc6c0 commit 559a89c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions packages/client/scripts/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ async function init() {
// let data1 = await obelisk.getComponent("0x36cbd7d72444757040b496e7380af38c873e3ce4a88a30a0800ed7d3a24b3929", hexdata)
let data1 = await obelisk.getComponentByName(
'0x8ca551499f40b18ee42e9537ce1e22c2f40120c014ee13c77ab8162b546c3575',
'counter',
'withinfinity'
'counter'
);
console.log(JSON.stringify(data1.data?.content));
let content = data1.data!.content as data;
Expand Down
1 change: 0 additions & 1 deletion packages/client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from '@mysten/sui.js';
export { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519';
export { fromB64, toB64 } from '@mysten/sui.js';
export * from '@mysten/sui.js/bcs';
export { Obelisk } from './obelisk';
export { SuiAccountManager } from './libs/suiAccountManager';
Expand Down
6 changes: 1 addition & 5 deletions packages/client/src/obelisk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,7 @@ export class Obelisk {
return await this.suiInteractor.getDynamicFields(parentId);
}

async getComponentByName(
worldId: string,
componentName: string,
packageName: string
) {
async getComponentByName(worldId: string, componentName: string) {
const componentNameId = `${capitalizeFirstLetter(componentName)} Comp`;
const componentId = keccak256(componentNameId);
return await this.getComponent(worldId, componentId);
Expand Down

0 comments on commit 559a89c

Please sign in to comment.