@truffle/debugger
Advanced tools
Comparing version 12.0.0 to 12.1.0
@@ -15,3 +15,3 @@ { | ||
}, | ||
"version": "12.0.0", | ||
"version": "12.1.0", | ||
"main": "dist/debugger.js", | ||
@@ -28,4 +28,4 @@ "scripts": { | ||
"@truffle/abi-utils": "^1.0.1", | ||
"@truffle/codec": "^0.16.0", | ||
"@truffle/source-map-utils": "^1.3.115", | ||
"@truffle/codec": "^0.17.0", | ||
"@truffle/source-map-utils": "^1.3.116", | ||
"bn.js": "^5.1.3", | ||
@@ -45,7 +45,7 @@ "debug": "^4.3.1", | ||
"@jsdevtools/coverage-istanbul-loader": "^3.0.5", | ||
"@truffle/artifactor": "^4.0.193", | ||
"@truffle/artifactor": "^4.0.194", | ||
"@truffle/config": "^1.3.58", | ||
"@truffle/migrate": "^3.3.42", | ||
"@truffle/resolver": "^9.0.47", | ||
"@truffle/workflow-compile": "^4.0.65", | ||
"@truffle/migrate": "^3.3.43", | ||
"@truffle/resolver": "^9.0.48", | ||
"@truffle/workflow-compile": "^4.0.66", | ||
"chai": "^4.2.0", | ||
@@ -74,3 +74,3 @@ "change-case": "3.0.2", | ||
}, | ||
"gitHead": "854a564b2545bbd2cc0a2cf04c9d38a5b8f57d7a" | ||
"gitHead": "a6fb238ef954d3ad4c6fd4181b78ee3dc047c8bf" | ||
} |
@@ -449,5 +449,5 @@ import debugModule from "debug"; | ||
const variables = Codec.Format.Utils.Inspect.unsafeNativizeVariables( | ||
await bugger.variables() | ||
); | ||
const rawVariables = await bugger.variables(); | ||
const variables = | ||
Codec.Format.Utils.Inspect.unsafeNativizeVariables(rawVariables); | ||
debug("variables %O", variables); | ||
@@ -461,3 +461,7 @@ | ||
intMap: { "-1": -1 }, | ||
stringMap: { "0xdeadbeef": "0xdeadbeef", 12345: "12345", hello: "hello" }, | ||
stringMap: { | ||
"0xdeadbeef": "0xdeadbeef", | ||
"12345": "12345", | ||
"hello": "hello" | ||
}, | ||
addressMap: { [address]: address }, | ||
@@ -481,2 +485,12 @@ contractMap: { [address]: address }, | ||
assert.deepInclude(variables, expectedResult); | ||
//while we're at it, let's also test the interpretation on addressMap[address] | ||
const value = rawVariables.addressMap.value[0].value; | ||
assert.equal(value.kind, "value"); | ||
assert.equal(value.type.typeClass, "address"); | ||
assert.isDefined(value.interpretations.contractClass); | ||
assert.equal( | ||
value.interpretations.contractClass.typeName, | ||
"ElementaryTest" | ||
); | ||
}); | ||
@@ -483,0 +497,0 @@ |
1321516
18523
- Removed@truffle/codec@0.16.0(transitive)
Updated@truffle/codec@^0.17.0