Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Unexpected TX type ForceTransfer #823

Open
amonsosanz opened this issue Mar 28, 2022 · 0 comments
Open

Unexpected TX type ForceTransfer #823

amonsosanz opened this issue Mar 28, 2022 · 0 comments
Labels
type: bug Something isn't working

Comments

@amonsosanz
Copy link
Contributor

amonsosanz commented Mar 28, 2022

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"
}
@amonsosanz amonsosanz added the type: bug Something isn't working label Mar 28, 2022
@elias-garcia elias-garcia changed the title Unexpeted TX type ForceTransfer Unexpected TX type ForceTransfer Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant