Skip to content

Commit b37b66c

Browse files
committed
chore: update puya-ts dependency
1 parent ffff719 commit b37b66c

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"vitest": "3.2.4"
6868
},
6969
"dependencies": {
70-
"@algorandfoundation/algorand-typescript": "1.0.0-alpha.65",
71-
"@algorandfoundation/puya-ts": "1.0.0-alpha.65",
70+
"@algorandfoundation/algorand-typescript": "1.0.0-alpha.74",
71+
"@algorandfoundation/puya-ts": "1.0.0-alpha.74",
7272
"elliptic": "^6.6.1",
7373
"js-sha256": "^0.11.0",
7474
"js-sha3": "^0.9.3",

src/test-transformer/visitors.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class ExpressionVisitor {
177177
this.stubbedFunctionName = undefined
178178
let infoArg: TypeInfo | TypeInfo[] | undefined = info
179179

180-
/// if the function being called is not part of the program being transformed, do not process further
180+
// the nodes which have been created or updated by the node factory will not have source location,
181+
// and we do not need to process them further
181182
const sourceLocation = this.helper.sourceLocation(updatedNode)
182183
if (sourceLocation === SourceLocation.None) break handleTypeInfoCaputre
183184

@@ -201,8 +202,8 @@ class ExpressionVisitor {
201202
} else if (isCallingAbiCall(stubbedFunctionName)) {
202203
updatedNode = nodeFactory.callAbiCallFunction(updatedNode)
203204
} else if (isCallingBytes(stubbedFunctionName)) {
204-
if (type instanceof ptypes.BytesPType && type.fixedByteSize)
205-
updatedNode = nodeFactory.callFixedBytesFunction(stubbedFunctionName, updatedNode, Number(type.fixedByteSize))
205+
if (type instanceof ptypes.BytesPType && type.length)
206+
updatedNode = nodeFactory.callFixedBytesFunction(stubbedFunctionName, updatedNode, Number(type.length))
206207
} else {
207208
updatedNode = nodeFactory.callStubbedFunction(updatedNode, infoArg)
208209
}

0 commit comments

Comments
 (0)