diff --git a/.changeset/blue-avocados-float.md b/.changeset/blue-avocados-float.md new file mode 100644 index 0000000000000..ccf7cef06cf39 --- /dev/null +++ b/.changeset/blue-avocados-float.md @@ -0,0 +1,5 @@ +--- +'@mysten/deepbook-v3': patch +--- + +Governance function update diff --git a/sdk/deepbook-v3/src/transactions/governance.ts b/sdk/deepbook-v3/src/transactions/governance.ts index 907be66d6ad13..74f88a9815dd2 100644 --- a/sdk/deepbook-v3/src/transactions/governance.ts +++ b/sdk/deepbook-v3/src/transactions/governance.ts @@ -106,6 +106,8 @@ export class GovernanceContract { const pool = this.#config.getPool(poolKey); const balanceManager = this.#config.getBalanceManager(balanceManagerKey); const tradeProof = tx.add(this.#config.balanceManager.generateProof(balanceManagerKey)); + const baseCoin = this.#config.getCoin(pool.baseCoin); + const quoteCoin = this.#config.getCoin(pool.quoteCoin); tx.moveCall({ target: `${this.#config.DEEPBOOK_PACKAGE_ID}::pool::vote`, @@ -115,6 +117,7 @@ export class GovernanceContract { tradeProof, tx.pure.id(proposal_id), ], + typeArguments: [baseCoin.type, quoteCoin.type], }); }; }