We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when getting events from block 2535089, retriever.GetEvents() got error :
event parsing: error 0: exec function error: event topics decoding: event #1: expected more bytes, but could not decode any more
testURL := "wss://rpc.polkadot.io" api, err := gsrpc.NewSubstrateAPI(testURL) if err != nil { log.Printf("Couldn't connect to '%s': %s\n", testURL, err) return } retriever, err := retriever.NewDefaultEventRetriever(state.NewEventProvider(api.RPC.State), api.RPC.State) if err != nil { log.Printf("Couldn't create event retriever: %s", err) return } blockHash, err := api.RPC.Chain.GetBlockHash(uint64(2535089)) if err != nil { log.Printf("Couldn't retrieve blockHash for '%s', block number %d: %s\n", testURL, header.Number, err) return } events, err := retriever.GetEvents(blockHash) if err != nil { log.Printf("Couldn't retrieve events for '%s', block number %d: %s\n", testURL, header.Number, err) return } log.Printf("Found %d events for '%s', at block number %d.\n", len(events), testURL, header.Number)
The text was updated successfully, but these errors were encountered:
@ryuuyq - please refer to - #357 (comment)
Sorry, something went wrong.
No branches or pull requests
when getting events from block 2535089, retriever.GetEvents() got error :
event parsing: error 0: exec function error: event topics decoding: event #1: expected more bytes, but could not decode any more
The text was updated successfully, but these errors were encountered: