@ocap/statedb-fs 1.18.59 → 1.18.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/table/account.js +2 -2
- package/package.json +5 -5
package/lib/table/account.js
CHANGED
|
@@ -3,9 +3,9 @@ const debug = require('debug')(require('../../package.json').name);
|
|
|
3
3
|
const FsTable = require('./base');
|
|
4
4
|
|
|
5
5
|
class AccountTable extends FsTable {
|
|
6
|
-
async _get(address, {
|
|
6
|
+
async _get(address, { traceMigration = true } = {}) {
|
|
7
7
|
const current = await this.collection.by(this.uniqIndex, ensureChecksumAddress(address));
|
|
8
|
-
if (current &&
|
|
8
|
+
if (current && traceMigration && Array.isArray(current.migratedTo) && current.migratedTo.length) {
|
|
9
9
|
return this.collection.by(this.uniqIndex, current.migratedTo[0]);
|
|
10
10
|
}
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/statedb-fs",
|
|
3
3
|
"description": "OCAP statedb adapter that uses fs as backend",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.60",
|
|
5
5
|
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ArcBlock/asset-chain/issues",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"test": "jest --forceExit --detectOpenHandles",
|
|
38
38
|
"coverage": "npm run test -- --coverage & exit 0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0991b0393f9510fd1fe748be4776a9761ba3a831",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ocap/state": "1.18.
|
|
43
|
-
"@ocap/statedb": "1.18.
|
|
44
|
-
"@ocap/util": "1.18.
|
|
42
|
+
"@ocap/state": "1.18.60",
|
|
43
|
+
"@ocap/statedb": "1.18.60",
|
|
44
|
+
"@ocap/util": "1.18.60",
|
|
45
45
|
"debug": "^4.3.4",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
47
|
"lokijs": "^1.5.12"
|