Unexpected TX type ForceTransfer
Opened this issue · 0 comments
amonsosanz commented
When loading the historic transactions I get an error in the console:
A decoding error occurred: Could not decode the HistoryTransaction at index 0 from the function getHistoryTransactions. It has been ignored.
The decoding error:
{
"code": "invalid_enum_value",
"options": [
"Deposit",
"CreateAccountDeposit",
"Transfer",
"TransferToEthAddr",
"TransferToBJJ",
"Withdrawn",
"Exit",
"ForceExit"
],
"path": [
"type"
],
"message": "Invalid enum value. Expected 'Deposit' | 'CreateAccountDeposit' | 'Transfer' | 'TransferToEthAddr' | 'TransferToBJJ' | 'Withdrawn' | 'Exit' | 'ForceExit', received 'ForceTransfer'"
}
So we're missing the TX type ForceTransfer
and those TX are ignored (i.e not listed in the table)
This is the TX:
{
"id": "0x00f070057c896386b2bccad1863e5a460bdbfe027c9eb4aae9a989064ff698659d",
"itemId": 88747,
"type": "ForceTransfer",
"position": 0,
"fromAccountIndex": "hez:ETH:6328",
"fromHezEthereumAddress": "hez:0xE7F9b05B3C68C4393CDDd1a25Ebfe48CA3F40Edc",
"fromBJJ": "hez:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"toAccountIndex": "hez:ETH:6329",
"toHezEthereumAddress": "hez:0x99B2d88d2CdA02e70f350A4591dCcC5D52C8C8e3",
"toBJJ": "hez:_qjt_DujIxUR3zt-9GkrFzac77FOmmhntJ7rt00dU5de",
"amount": "1",
"batchNum": 13049,
"historicUSD": 2.463e-15,
"timestamp": "2022-02-24T15:53:26Z",
"L1Info": {
"toForgeL1TransactionsNum": 11771,
"userOrigin": true,
"depositAmount": "0",
"amountSuccess": false,
"depositAmountSuccess": true,
"historicDepositAmountUSD": null,
"ethereumBlockNum": 10224742
},
"L2Info": null,
"token": {
"id": 0,
"itemId": 1,
"ethereumBlockNum": 0,
"ethereumAddress": "0x0000000000000000000000000000000000000000",
"name": "Ether",
"symbol": "ETH",
"decimals": 18,
"USD": 3349.2,
"fiatUpdate": "2022-03-28T17:23:35.995693Z"
},
"L1orL2": "L1"
}