diff --git a/package.json b/package.json index 925e8a1d6..9d2d1a209 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@babel/core": "^7.3.4", - "@polkadot/dev": "^0.25.11", + "@polkadot/dev": "^0.25.12", "@polkadot/ts": "^0.1.55", "gh-pages": "^2.0.1" } diff --git a/packages/db/src/engines/TransactionDb.ts b/packages/db/src/engines/TransactionDb.ts index dbed2f5bb..5e791cf2d 100644 --- a/packages/db/src/engines/TransactionDb.ts +++ b/packages/db/src/engines/TransactionDb.ts @@ -26,7 +26,7 @@ export default class TransactionDb implements TxDb { this.txStarted = false; } - transaction (fn: () => T): T { + transaction (fn: () => T): T { l.debug(() => ['transaction']); try { diff --git a/packages/db/src/types.ts b/packages/db/src/types.ts index eb46affea..ca92c5711 100644 --- a/packages/db/src/types.ts +++ b/packages/db/src/types.ts @@ -34,5 +34,5 @@ export interface BaseDb { } export interface TxDb extends BaseDb { - transaction (fn: () => boolean): boolean; + transaction (fn: () => T): T; } diff --git a/packages/trie-db/src/index.ts b/packages/trie-db/src/index.ts index d7b92379e..f6fcef9c6 100644 --- a/packages/trie-db/src/index.ts +++ b/packages/trie-db/src/index.ts @@ -31,7 +31,7 @@ export default class Trie extends Impl implements TrieDb { l.log(`Created with ${this.codec.type} codec, root ${u8aToHex(this.rootHash, 64)}`); } - transaction (fn: () => boolean): boolean { + transaction (fn: () => T): T { try { this.createCheckpoint(); diff --git a/yarn.lock b/yarn.lock index c20244361..688788d77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1393,10 +1393,10 @@ universal-user-agent "^2.0.0" url-template "^2.0.8" -"@polkadot/dev@^0.25.11": - version "0.25.11" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.25.11.tgz#73235add1eb0c86257ed8f1ab60e213be79a93f1" - integrity sha512-Fs9VFlwwZVKtk+J9kjNG0lWDpTYvcVXOksMXJ1lQLnf2YhqFILsq8kETfoXWbDbusgcok69hoA4YcNtwiEAGWg== +"@polkadot/dev@^0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.25.12.tgz#de440a96dba3c9b4a92e6be0f0276b8c1f4daf24" + integrity sha512-pISn6l4+brHCE04jjqSc7j7V63QmuhFykJFV2WejZHvUtKzBJa35C1ps+U9iKfa5Ma2gFyjyvlQOOvAKRwuKrA== dependencies: "@babel/cli" "^7.2.3" "@babel/core" "^7.3.4"