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 Jul 19, 2023
1 parent 23892cc commit b50fea3
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 @@ -167,16 +167,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 b50fea3

Please sign in to comment.