Skip to content
Snippets Groups Projects
Unverified Commit 52d508a4 authored by Maciej Hirsz's avatar Maciej Hirsz Committed by GitHub
Browse files

Reset specVersion Metadata errors (#13)

* chore: Reset specVersion on metadata errors
* chore: version bump
parent 53d1ec53
Branches
Tags v0.1.5
No related merge requests found
{
"name": "polkadot-rpc-proxy",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"main": "index.js",
"scripts": {
......
......@@ -173,6 +173,7 @@ export default class ApiHandler {
} catch (err) {
console.error(`Failed to get Metadata for block ${hash}, using latest.`);
console.error(err);
this.specVersion = api.createType('u32', -1);
}
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment