Skip to content

Commit f9d5601

Browse files
committed
fix building error
1 parent fd7aa5d commit f9d5601

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"graphql": "^16.4.0",
2222
"graphql-request": "^3.4.0",
2323
"js-cookie": "^3.0.1",
24-
"loopring36-block-parser2": "^0.0.1",
24+
"loopring36-block-parser2": "^0.0.2",
2525
"next": "^12.1.5",
2626
"numeral": "^2.0.6",
2727
"postcss-import": "^13.0.0",

utils/transaction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BigNumber } from "ethers"
2-
import { dataByBlockIdAndIndex } from 'loopring36-block-parser';
2+
import { dataByBlockIdAndIndex } from "loopring36-block-parser2";
33

44
export const getBlock = (blockId: number) => fetch(`https://api3.loopring.io/api/v3/block/getBlock?id=${blockId}`)
55
.then(x => x.json())
@@ -80,7 +80,6 @@ const convertTransactionData_Swap = async (origin: any) => {
8080
return (origin.tokenAB === t1Id && origin.tokenBB === t2Id)
8181
|| (origin.tokenAB === t2Id && origin.tokenBB === t1Id)
8282
})
83-
// debugger
8483
const accountAddress = (await getAccount(origin.accountIdA)).owner
8584
return {
8685
transaction: {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6323,10 +6323,10 @@ log-update@^4.0.0:
63236323
slice-ansi "^4.0.0"
63246324
wrap-ansi "^6.2.0"
63256325

6326-
loopring36-block-parser2@^0.0.1:
6327-
version "0.0.1"
6328-
resolved "https://registry.yarnpkg.com/loopring36-block-parser2/-/loopring36-block-parser2-0.0.1.tgz#dcff9ed4fe097f6ee5343e506f70769d9301e946"
6329-
integrity sha512-AgyEzprB0J4WeN8hQLdkIxVCEG2/bD9/4D1Ro4pFTYisgr4sO3az86ErEZmZGkCnCW4P2EnNiGfVRKBsgABR/g==
6326+
loopring36-block-parser2@^0.0.2:
6327+
version "0.0.2"
6328+
resolved "https://registry.yarnpkg.com/loopring36-block-parser2/-/loopring36-block-parser2-0.0.2.tgz#17a4c8460534a80e62e522aea645c37400c399f1"
6329+
integrity sha512-FfhBPg8b5+MrquHNDfU2M+wu6pRbv/9ZmsydXBEHU0ktmBBbrMM3wOB94AWGdW4VeqS+2E9se8sAlMURqEXWRw==
63306330
dependencies:
63316331
axios "^0.21.0"
63326332
bignumber.js "^9.1.1"

0 commit comments

Comments
 (0)