Skip to content

Commit 30e01e8

Browse files
authored
Merge pull request #76 from algorandfoundation/chore/update-dep
chore: update versions of puya dependencies
2 parents ee8c1df + 93e5dee commit 30e01e8

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
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
@@ -66,8 +66,8 @@
6666
"vitest": "3.1.3"
6767
},
6868
"dependencies": {
69-
"@algorandfoundation/algorand-typescript": "1.0.0-alpha.55",
70-
"@algorandfoundation/puya-ts": "1.0.0-alpha.55",
69+
"@algorandfoundation/algorand-typescript": "1.0.0-alpha.59",
70+
"@algorandfoundation/puya-ts": "1.0.0-alpha.59",
7171
"elliptic": "^6.6.1",
7272
"js-sha256": "^0.11.0",
7373
"js-sha3": "^0.9.3",

tests/references/box-map.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@ describe('BoxMap', () => {
124124
})
125125
},
126126
},
127+
{
128+
key: { x: Uint64(21), y: Uint64(42) },
129+
value: { a: 'hello', b: Bytes('world'), c: true } as unknown as MyStruct,
130+
newValue: { a: 'world', b: Bytes('hello'), c: false } as unknown as MyStruct,
131+
emptyValue: interpretAsArc4<MyStruct>(Bytes('')),
132+
withBoxContext: (test: (boxMap: BoxMap<{ x: uint64; y: uint64 }, MyStruct>) => void) => {
133+
ctx.txn.createScope([ctx.any.txn.applicationCall()]).execute(() => {
134+
const boxMap = BoxMap<{ x: uint64; y: uint64 }, MyStruct>({ keyPrefix })
135+
test(boxMap)
136+
})
137+
},
138+
},
127139
]
128140

129141
afterEach(() => {

0 commit comments

Comments
 (0)