From 0faed886002a9b01ad0513c860e19d7570cb0221 Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Tue, 14 Sep 2021 10:24:18 -0700 Subject: [PATCH] spl, ts: Pin serum-dex and lint (#735) --- spl/Cargo.toml | 2 +- ts/src/provider.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/spl/Cargo.toml b/spl/Cargo.toml index 6dce1f28c..75749f172 100644 --- a/spl/Cargo.toml +++ b/spl/Cargo.toml @@ -12,6 +12,6 @@ devnet = [] [dependencies] anchor-lang = { path = "../lang", version = "0.15.0", features = ["derive"] } lazy_static = "1.4.0" -serum_dex = { git = "https://github.com/project-serum/serum-dex", version = "0.4.0", features = ["no-entrypoint"] } +serum_dex = { git = "https://github.com/project-serum/serum-dex", rev = "1be91f2", version = "0.4.0", features = ["no-entrypoint"] } solana-program = "=1.7.11" spl-token = { version = "3.1.1", features = ["no-entrypoint"] } diff --git a/ts/src/provider.ts b/ts/src/provider.ts index 3e3d3a855..ace0740e3 100644 --- a/ts/src/provider.ts +++ b/ts/src/provider.ts @@ -234,12 +234,9 @@ export class NodeWallet implements Wallet { const payer = Keypair.fromSecretKey( Buffer.from( JSON.parse( - require("fs").readFileSync( - process.env.ANCHOR_WALLET, - { - encoding: "utf-8", - } - ) + require("fs").readFileSync(process.env.ANCHOR_WALLET, { + encoding: "utf-8", + }) ) ) );