@@ -315,7 +315,7 @@ describe('transaction', () => {
315
315
note : 'txn2' ,
316
316
} satisfies Parameters < ( typeof appClient1 ) [ 'send' ] [ 'call' ] > [ 0 ]
317
317
318
- const result = await appClient1 . algorand
318
+ const result = await appClient1
319
319
. newGroup ( )
320
320
. addAppCallMethodCall ( await appClient1 . params . call ( txn1Params ) )
321
321
. addAppCallMethodCall ( await appClient1 . params . call ( txn2Params ) )
@@ -406,7 +406,7 @@ describe('transaction', () => {
406
406
const { testAccount } = localnet . context
407
407
const expectedFee = 8000n
408
408
409
- const result = await appClient1 . algorand
409
+ const result = await appClient1
410
410
. newGroup ( )
411
411
. addPayment ( {
412
412
sender : testAccount . addr ,
@@ -432,7 +432,7 @@ describe('transaction', () => {
432
432
433
433
test ( 'alters fee, allocating surplus fees to the most fee constrained transaction first' , async ( ) => {
434
434
const { testAccount } = localnet . context
435
- const result = await appClient1 . algorand
435
+ const result = await appClient1
436
436
. newGroup ( )
437
437
. addAppCallMethodCall (
438
438
await appClient1 . params . call ( {
@@ -520,7 +520,7 @@ describe('transaction', () => {
520
520
test ( 'throws when maxFee is below the calculated fee' , async ( ) => {
521
521
await expect (
522
522
async ( ) =>
523
- await appClient1 . algorand
523
+ await appClient1
524
524
. newGroup ( )
525
525
. addAppCallMethodCall (
526
526
await appClient1 . params . call ( {
@@ -581,7 +581,7 @@ describe('transaction', () => {
581
581
test ( 'throws when staticFee is below the calculated fee' , async ( ) => {
582
582
await expect (
583
583
async ( ) =>
584
- await appClient1 . algorand
584
+ await appClient1
585
585
. newGroup ( )
586
586
. addAppCallMethodCall (
587
587
await appClient1 . params . call ( {
@@ -607,7 +607,7 @@ describe('transaction', () => {
607
607
const { testAccount } = localnet . context
608
608
await expect (
609
609
async ( ) =>
610
- await appClient1 . algorand
610
+ await appClient1
611
611
. newGroup ( )
612
612
. addAppCallMethodCall (
613
613
await appClient1 . params . call ( {
@@ -787,12 +787,12 @@ const resourcePopulationTests = (version: 8 | 9) => () => {
787
787
let alice : Address & Account
788
788
789
789
describe ( 'accounts' , ( ) => {
790
- test ( 'addressBalance: invalid Account reference ' , async ( ) => {
790
+ test ( 'addressBalance: unavailable Account' , async ( ) => {
791
791
const { testAccount } = fixture . context
792
792
alice = testAccount
793
793
await expect (
794
794
appClient . send . call ( { method : 'addressBalance' , args : [ testAccount . toString ( ) ] , populateAppCallResources : false } ) ,
795
- ) . rejects . toThrow ( 'invalid Account reference ' )
795
+ ) . rejects . toThrow ( 'unavailable Account' )
796
796
} )
797
797
798
798
test ( 'addressBalance' , async ( ) => {
@@ -846,7 +846,7 @@ const resourcePopulationTests = (version: 8 | 9) => () => {
846
846
} )
847
847
848
848
describe ( 'cross-product references' , ( ) => {
849
- const hasAssetErrorMsg = version === 8 ? 'invalid Account reference' : 'unavailable Account'
849
+ const hasAssetErrorMsg = 'unavailable Account'
850
850
851
851
test ( `hasAsset: ${ hasAssetErrorMsg } ` , async ( ) => {
852
852
const { testAccount } = fixture . context
@@ -885,14 +885,14 @@ const resourcePopulationTests = (version: 8 | 9) => () => {
885
885
} )
886
886
887
887
describe ( 'sendTransaction' , ( ) => {
888
- test ( 'addressBalance: invalid Account reference ' , async ( ) => {
888
+ test ( 'addressBalance: unavailable Account' , async ( ) => {
889
889
await expect (
890
890
appClient . send . call ( {
891
891
method : 'addressBalance' ,
892
892
args : [ algosdk . generateAccount ( ) . addr . toString ( ) ] ,
893
893
populateAppCallResources : false ,
894
894
} ) ,
895
- ) . rejects . toThrow ( 'invalid Account reference ' )
895
+ ) . rejects . toThrow ( 'unavailable Account' )
896
896
} )
897
897
898
898
test ( 'addressBalance' , async ( ) => {
0 commit comments