Struct decoding error messaging (#3425)

* Struct decoding error messaging

* Error adjust

* Tests

* Bump common, use stringify

* Linting

* Adjust

* Bumps

* Rebump

* Assert cleanups

* Don't modify original value on encoding

* util bump, fixe compact encoding
This commit is contained in:
Jaco
2021-04-22 15:02:54 +02:00
committed by GitHub
parent 88b84dcf75
commit 557283a3d1
57 changed files with 267 additions and 247 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export class MetadataVersioned extends Struct {
}
#assertVersion = (version: number): boolean => {
assert(this.version <= version, `Cannot convert metadata from v${this.version} to v${version}`);
assert(this.version <= version, () => `Cannot convert metadata from v${this.version} to v${version}`);
return this.version === version;
};