Skip to content

Commit 068efe4

Browse files
committed
chore(deps): update calldata to 1.9.1
1 parent d256933 commit 068efe4

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"SDK"
6060
],
6161
"dependencies": {
62-
"@aeternity/aepp-calldata": "^1.8.0",
62+
"@aeternity/aepp-calldata": "^1.9.1",
6363
"@azure/core-client": "^1.9.3",
6464
"@azure/core-rest-pipeline": "^1.19.1",
6565
"@babel/runtime-corejs3": "^7.27.0",

test/integration/contract-aci.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,15 +1059,17 @@ describe('Contract instance', () => {
10591059
});
10601060

10611061
describe('STRING', () => {
1062-
it('Accepts array as joined string', async () => {
1062+
it('Accepts array as buffer', async () => {
10631063
const arr = [1, 2, 3];
10641064
const { decodedResult } = await testContract.stringFn(arr as any);
1065-
decodedResult.should.be.equal(arr.join(','));
1065+
decodedResult.should.be.equal(Buffer.from(arr).toString());
10661066
});
10671067

1068-
it('Accepts number as string', async () => {
1069-
const { decodedResult } = await testContract.stringFn(123 as any);
1070-
decodedResult.should.be.equal('123');
1068+
it('Does not accepts number', async () => {
1069+
await expect(testContract.stringFn(123 as any)).to.be.rejectedWith(
1070+
TypeError,
1071+
'data is not iterable',
1072+
);
10711073
});
10721074

10731075
it('Valid', async () => {

0 commit comments

Comments
 (0)