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

This commit is contained in:
Armani Ferrante 2021-09-14 10:24:18 -07:00 committed by GitHub
parent cc8e7b416c
commit 0faed88600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -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"] }

View File

@ -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",
})
)
)
);