Skip to content

Commit 3e54f60

Browse files
committed
fix a bug
1 parent b9ff723 commit 3e54f60

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-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.4",
24+
"loopring36-block-parser2": "^0.0.5",
2525
"next": "^12.1.5",
2626
"numeral": "^2.0.6",
2727
"postcss-import": "^13.0.0",

utils/transaction.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const convertTransactionData_Deposit = async (origin: any) => {
203203
}
204204
}
205205
const publickeyDecimalToHex128 = (decimalPublicKey: string) => {
206-
const hex = BigNumber.from(decimalPublicKey).toHexString()
206+
const hex = BigNumber.from(decimalPublicKey).toHexString().slice(2)
207207
const n = 64 - hex.length
208208
return '0'.repeat(n) + hex
209209
}
@@ -215,7 +215,8 @@ const convertTransactionData_AccountUpdate = async (origin: any) => {
215215
user: {
216216
address: origin.owner,
217217
id: origin.accountID,
218-
publicKey: publickeyDecimalToHex128(origin.publicKeyY)
218+
publicKey: origin.publicKey
219+
// publickeyDecimalToHex128(origin.publicKeyY)
219220
},
220221
feeToken: {
221222
decimals: feeTokenInfo.decimals,

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.4:
6327-
version "0.0.4"
6328-
resolved "https://registry.yarnpkg.com/loopring36-block-parser2/-/loopring36-block-parser2-0.0.4.tgz#ef219cebc4b5a3dca4324ee1ed8d5b8b842be2e1"
6329-
integrity sha512-499vt7z/C51xTepjocsYlkALiYJD2W6YUlAFFcrit0Ke7yR/nA9itkfqUs5jsWA/I4iK+ISijfv/QLUARpTfYA==
6326+
loopring36-block-parser2@^0.0.5:
6327+
version "0.0.5"
6328+
resolved "https://registry.yarnpkg.com/loopring36-block-parser2/-/loopring36-block-parser2-0.0.5.tgz#2ef3310f32fcfcb971ecdb120571f99efe694796"
6329+
integrity sha512-DhgGVOOOdblf+6iYwvo2EZ4l0hxyYbzsulB10tXfz+j7c4zNAUugGK+oxsQlImuqZDyyjzuzKSowCUKZaVt7ZQ==
63306330
dependencies:
63316331
axios "^0.21.0"
63326332
bignumber.js "^9.1.1"

0 commit comments

Comments
 (0)