Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/program/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "0.17.20"
export const VERSION = "0.17.21"
2 changes: 1 addition & 1 deletion src/statements/DataDefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ export class DataDefinition {
${ir}
},
() -> {
__core__trace("Warning: invalid ${mStructName} data",
__core__trace("Warning: invalid data in ${mStructName}.${f.encodedFieldName}",
() -> {
false
}
Expand Down
4 changes: 4 additions & 0 deletions src/typecheck/hashes.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const PubKeyType = new GenericType({
genTypeMembers: (self) => ({
...genCommonTypeMembers(self),
new: new FuncType([ByteArrayType], self)
}),
genTypeSchema: (self) => ({
kind: /** @type {const} */ ("internal"),
name: "PubKey"
})
})

Expand Down
4 changes: 2 additions & 2 deletions test/struct.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe("mStruct Pair[Int, Int]", () => {
runner([map([[$a, int(0)]])], False)
})

it("issues warnings from unoptimized version (missing field and invalid ‹struct-name›)", () => {
it("issues warnings from unoptimized version (missing field by-name, and invalid ‹struct-name›)", () => {
const [result] = runner([map([[$a, int(0)]])], False)
const logs = result.logs.map((l) => l.message)
if (!logs.some((x) => x.match(/field not found: b/))) {
Expand All @@ -181,7 +181,7 @@ describe("mStruct Pair[Int, Int]", () => {
logs.map((l) => `unoptimized> ${l}`).join("\n")
)
}
if (!logs.some((x) => x.match(/invalid Pair data/))) {
if (!logs.some((x) => x.match(/invalid data in Pair.b/))) {
throw new Error(
"Expected warning about invalid Pair, got logs:\n" +
logs.map((l) => `unoptimized> ${l}`).join("\n")
Expand Down