瀏覽代碼

spl, ts: Pin serum-dex and lint (#735)

Armani Ferrante 4 年之前
父節點
當前提交
0faed88600
共有 2 個文件被更改,包括 4 次插入7 次删除
  1. 1 1
      spl/Cargo.toml
  2. 3 6
      ts/src/provider.ts

+ 1 - 1
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"] }

+ 3 - 6
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",
+          })
         )
       )
     );