Skip to content

Commit

Permalink
Merge pull request #276 from convergence-rfq/dev-cli-update-base-asset
Browse files Browse the repository at this point in the history
Dev cli update base asset
  • Loading branch information
Nagaprasadvr authored Mar 7, 2024
2 parents f988cfe + 33338b1 commit 174ca17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/cli/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const updateBaseAsset = async (opts: Opts) => {
oracleAddress,
riskCategory,
} = opts;
const enabledArg = enabled === 'true' ? true : false;
if (!oraclePrice && !oracleAddress) {
throw new Error('Either oraclePrice or oracleAddress must be provided');
}
Expand All @@ -192,7 +193,7 @@ export const updateBaseAsset = async (opts: Opts) => {
try {
const { response } = await cvg.protocol().updateBaseAsset({
authority: cvg.rpc().getDefaultFeePayer(),
enabled,
enabled: enabledArg,
index,
priceOracle: {
source: oracleSource,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/groups/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const updateBaseAssetCmd = (c: Command) =>
{
flags: '--enabled <boolean>',
description: 'enabled',
defaultValue: true,
defaultValue: 'true',
},
{
flags: '--oracle-source <string>',
Expand Down

0 comments on commit 174ca17

Please sign in to comment.