When I tried to parse events records to get information about balance transfers its failed on tesnet (rococo and wested) but on mainnet works.
panic: unable to decode field 3 event #1 with EventID [3 0], field Indices_IndexAssigned: expected more bytes, but could not decode any more
There is a workaround or alternative to have the same code working on mainnet and testnet?
./main wss://rpc.polkadot.io <-- works
./main wss://rococo-rpc.polkadot.io <-- it doesn’t work
./main wss://westend-rpc.polkadot.io <-- it doesn’t work
When I tried to parse events records to get information about balance transfers its failed on tesnet (rococo and wested) but on mainnet works.
panic: unable to decode field 3 event #1 with EventID [3 0], field Indices_IndexAssigned: expected more bytes, but could not decode any more
There is a workaround or alternative to have the same code working on mainnet and testnet?