Skip to content

Commit

Permalink
refactor(cli): integrate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Aug 15, 2023
1 parent 7a04298 commit 4d918cd
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/cli/src/utils/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,15 @@ export async function deploy(

await fastTxExecute(
WorldContract,
"registerTable",
[toBytes16(namespace), toBytes16(name), encodeSchema(schemaTypes), encodeSchema(keyTypes)],
confirmations
);

// Register table metadata
await fastTxExecute(
WorldContract,
"setMetadata(bytes16,bytes16,string,string[])",
[toBytes16(namespace), toBytes16(name), tableName, Object.keys(schema)],
"registerTable(bytes16,bytes16,bytes32,bytes32,string[],string[])",
[
toBytes16(namespace),
toBytes16(name),
encodeSchema(keyTypes),
encodeSchema(schemaTypes),
Object.keys(keySchema),
Object.keys(schema),
],
confirmations
);

Expand Down

0 comments on commit 4d918cd

Please sign in to comment.