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 bb4014b commit 4a52c4a
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 @@ -163,16 +163,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 4a52c4a

Please sign in to comment.