Skip to content

Commit 61dd43f

Browse files
committed
fix linter and cargo test
1 parent d4288fa commit 61dd43f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"prettify:fix": "prettier --write './sdk/src/**/*.ts' './tests/**.ts' './cli/**.ts'",
5151
"lint": "eslint . --ext ts --quiet --format unix",
5252
"lint:fix": "eslint . --ext ts --fix",
53-
"update-idl": "cp target/idl/drift.json sdk/src/idl/drift.json"
53+
"update-idl": "anchor build -- --features anchor-test && cp target/idl/drift.json sdk/src/idl/drift.json"
5454
},
5555
"engines": {
5656
"node": ">=12"

programs/drift/src/state/perp_market.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::math::constants::{
1818
LIQUIDATION_FEE_TO_MARGIN_PRECISION_RATIO, MARGIN_PRECISION, MARGIN_PRECISION_U128,
1919
MAX_LIQUIDATION_MULTIPLIER, PEG_PRECISION, PERCENTAGE_PRECISION, PERCENTAGE_PRECISION_I128,
2020
PERCENTAGE_PRECISION_I64, PERCENTAGE_PRECISION_U64, PRICE_PRECISION, PRICE_PRECISION_I128,
21-
SPOT_WEIGHT_PRECISION, TWENTY_FOUR_HOUR,
21+
PRICE_PRECISION_I64, SPOT_WEIGHT_PRECISION, TWENTY_FOUR_HOUR,
2222
};
2323
use crate::math::margin::{
2424
calculate_size_discount_asset_weight, calculate_size_premium_liability_weight,

sdk/src/driftClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9240,7 +9240,7 @@ export class DriftClient {
92409240

92419241
public async updateUserGovTokenInsuranceStake(
92429242
authority: PublicKey,
9243-
txParams?: TxParams,
9243+
txParams?: TxParams
92449244
): Promise<TransactionSignature> {
92459245
const ix = await this.getUpdateUserGovTokenInsuranceStakeIx(authority);
92469246
const tx = await this.buildTransaction(ix, txParams);

0 commit comments

Comments
 (0)