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 28, 2023
1 parent aa85f2c commit 0b8a66d
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 @@ -169,16 +169,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 0b8a66d

Please sign in to comment.