itering/scale.go

shibuya.json can't decode "Block num 302639" for "Not found decoder class SmartContract"

Closed this issue · 1 comments

WARN 11/04-05:39:43.059 /subscan/internal/service/service.go:43 Found unknown type Result<Null, ResponseV2Error>, SmartContract, EraRewardAndStake<BalanceOf>, EraStakingPoints<AccountId, BalanceOf>, ethereum::BlockV0, Transaction
INFO 11/04-05:39:53.886 /subscan/internal/service/substrate.go:170 Block num 302639 hash 0x6554c5190ff5d901fafa05b7014f79c51b62c89825e687ef445c1392aa2935ed
ERROR 11/04-05:39:53.897 /subscan/internal/service/block.go:33 Recovering from panic in DecodeExtrinsic error is: Not found decoder class SmartContract

you can add this type

  "SmartContract": {
    "type": "enum",
    "type_mapping": [
      [
        "Evm",
        "H160"
      ],
      [
        "Wasm",
        "AccountId"
      ]
    ]
  }