@@ -2,6 +2,10 @@
|
||||
|
||||
## master
|
||||
|
||||
Contributed:
|
||||
|
||||
- Adjust `api.{tx, query, ...}` with no external side-effects (Thanks to https://github.com/btwiuse)
|
||||
|
||||
Changes:
|
||||
|
||||
- Support for `state_call` definitions via API config (exposed on `api.runtime.*`)
|
||||
|
||||
@@ -19,8 +19,8 @@ interface PkgJson {
|
||||
}
|
||||
|
||||
function assertResult<T> (value: T | undefined): T {
|
||||
if (typeof value === 'undefined') {
|
||||
throw new Error('Api needs to be initialized before using, listen on \'ready\'');
|
||||
if (value === undefined) {
|
||||
throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");
|
||||
}
|
||||
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user