Fix typo in README example, remove unused import
This commit is contained in:
parent
6f300b5dba
commit
4689343350
|
@ -36,7 +36,7 @@ await market.placeOrder(connection, {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (let order of await market.loadBids(connection)) {
|
for (let order of await market.loadBids(connection)) {
|
||||||
if (order.owner.equals(owner.publicKey())) {
|
if (order.owner.equals(owner.publicKey)) {
|
||||||
await market.cancelOrder(connection, order);
|
await market.cancelOrder(connection, order);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn babel src --out-dir lib",
|
"build": "yarn babel src --out-dir lib",
|
||||||
|
"clean": "rm -rf lib",
|
||||||
"start": "yarn babel src --out-dir lib --watch",
|
"start": "yarn babel src --out-dir lib --watch",
|
||||||
"prepare": "run-s build",
|
"prepare": "run-s clean build",
|
||||||
"test": "run-s test:unit test:lint test:build",
|
"test": "run-s test:unit test:lint test:build",
|
||||||
"test:build": "run-s build",
|
"test:build": "run-s build",
|
||||||
"test:lint": "eslint src",
|
"test:lint": "eslint src",
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
import { blob, seq, struct, u8 } from 'buffer-layout';
|
import { blob, seq, struct, u8 } from 'buffer-layout';
|
||||||
import {
|
import { publicKeyLayout, u128, u64, WideBits } from './layout';
|
||||||
publicKeyLayout,
|
|
||||||
setLayoutDecoder,
|
|
||||||
u128,
|
|
||||||
u64,
|
|
||||||
WideBits,
|
|
||||||
} from './layout';
|
|
||||||
import { SLAB_LAYOUT } from './slab';
|
import { SLAB_LAYOUT } from './slab';
|
||||||
import { DEX_PROGRAM_ID } from './instructions';
|
import { DEX_PROGRAM_ID } from './instructions';
|
||||||
import BN from 'bn.js';
|
import BN from 'bn.js';
|
||||||
|
|
Loading…
Reference in New Issue