@@ -166,7 +166,8 @@ test(testCase, async (t: Test) => {
166
166
167
167
const { callOutput : helloMsg } = await connector . invokeContract ( {
168
168
contractName,
169
- keychainId : keychainPlugin . getKeychainId ( ) ,
169
+ contractAbi : HelloWorldContractJson . abi ,
170
+ contractAddress,
170
171
invocationType : EthContractInvocationType . CALL ,
171
172
methodName : "sayHello" ,
172
173
params : [ ] ,
@@ -187,7 +188,8 @@ test(testCase, async (t: Test) => {
187
188
const newName = `DrCactus${ uuidV4 ( ) } ` ;
188
189
const setNameOut = await connector . invokeContract ( {
189
190
contractName,
190
- keychainId : keychainPlugin . getKeychainId ( ) ,
191
+ contractAbi : HelloWorldContractJson . abi ,
192
+ contractAddress,
191
193
invocationType : EthContractInvocationType . SEND ,
192
194
methodName : "setName" ,
193
195
params : [ newName ] ,
@@ -203,7 +205,8 @@ test(testCase, async (t: Test) => {
203
205
try {
204
206
const setNameOutInvalid = await connector . invokeContract ( {
205
207
contractName,
206
- keychainId : keychainPlugin . getKeychainId ( ) ,
208
+ contractAbi : HelloWorldContractJson . abi ,
209
+ contractAddress,
207
210
invocationType : EthContractInvocationType . SEND ,
208
211
methodName : "setName" ,
209
212
params : [ newName ] ,
@@ -226,7 +229,8 @@ test(testCase, async (t: Test) => {
226
229
227
230
const getNameOut = await connector . invokeContract ( {
228
231
contractName,
229
- keychainId : keychainPlugin . getKeychainId ( ) ,
232
+ contractAbi : HelloWorldContractJson . abi ,
233
+ contractAddress,
230
234
invocationType : EthContractInvocationType . SEND ,
231
235
methodName : "getName" ,
232
236
params : [ ] ,
@@ -240,7 +244,8 @@ test(testCase, async (t: Test) => {
240
244
241
245
const { callOutput : getNameOut2 } = await connector . invokeContract ( {
242
246
contractName,
243
- keychainId : keychainPlugin . getKeychainId ( ) ,
247
+ contractAbi : HelloWorldContractJson . abi ,
248
+ contractAddress,
244
249
invocationType : EthContractInvocationType . CALL ,
245
250
methodName : "getName" ,
246
251
params : [ ] ,
@@ -291,7 +296,8 @@ test(testCase, async (t: Test) => {
291
296
const newName = `DrCactus${ uuidV4 ( ) } ` ;
292
297
const setNameOut = await connector . invokeContract ( {
293
298
contractName,
294
- keychainId : keychainPlugin . getKeychainId ( ) ,
299
+ contractAbi : HelloWorldContractJson . abi ,
300
+ contractAddress,
295
301
invocationType : EthContractInvocationType . SEND ,
296
302
methodName : "setName" ,
297
303
params : [ newName ] ,
@@ -307,7 +313,8 @@ test(testCase, async (t: Test) => {
307
313
try {
308
314
const setNameOutInvalid = await connector . invokeContract ( {
309
315
contractName,
310
- keychainId : keychainPlugin . getKeychainId ( ) ,
316
+ contractAbi : HelloWorldContractJson . abi ,
317
+ contractAddress,
311
318
invocationType : EthContractInvocationType . SEND ,
312
319
methodName : "setName" ,
313
320
params : [ newName ] ,
@@ -329,7 +336,8 @@ test(testCase, async (t: Test) => {
329
336
}
330
337
const { callOutput : getNameOut } = await connector . invokeContract ( {
331
338
contractName,
332
- keychainId : keychainPlugin . getKeychainId ( ) ,
339
+ contractAbi : HelloWorldContractJson . abi ,
340
+ contractAddress,
333
341
invocationType : EthContractInvocationType . CALL ,
334
342
methodName : "getName" ,
335
343
params : [ ] ,
@@ -344,7 +352,8 @@ test(testCase, async (t: Test) => {
344
352
345
353
const getNameOut2 = await connector . invokeContract ( {
346
354
contractName,
347
- keychainId : keychainPlugin . getKeychainId ( ) ,
355
+ contractAbi : HelloWorldContractJson . abi ,
356
+ contractAddress,
348
357
invocationType : EthContractInvocationType . SEND ,
349
358
methodName : "getName" ,
350
359
params : [ ] ,
@@ -372,7 +381,8 @@ test(testCase, async (t: Test) => {
372
381
373
382
const setNameOut = await connector . invokeContract ( {
374
383
contractName,
375
- keychainId : keychainPlugin . getKeychainId ( ) ,
384
+ contractAbi : HelloWorldContractJson . abi ,
385
+ contractAddress,
376
386
invocationType : EthContractInvocationType . SEND ,
377
387
methodName : "setName" ,
378
388
params : [ newName ] ,
@@ -385,7 +395,8 @@ test(testCase, async (t: Test) => {
385
395
try {
386
396
const setNameOutInvalid = await connector . invokeContract ( {
387
397
contractName,
388
- keychainId : keychainPlugin . getKeychainId ( ) ,
398
+ contractAbi : HelloWorldContractJson . abi ,
399
+ contractAddress,
389
400
invocationType : EthContractInvocationType . SEND ,
390
401
methodName : "setName" ,
391
402
params : [ newName ] ,
@@ -407,7 +418,8 @@ test(testCase, async (t: Test) => {
407
418
}
408
419
const { callOutput : getNameOut } = await connector . invokeContract ( {
409
420
contractName,
410
- keychainId : keychainPlugin . getKeychainId ( ) ,
421
+ contractAbi : HelloWorldContractJson . abi ,
422
+ contractAddress,
411
423
invocationType : EthContractInvocationType . CALL ,
412
424
methodName : "getName" ,
413
425
params : [ ] ,
@@ -418,7 +430,8 @@ test(testCase, async (t: Test) => {
418
430
419
431
const getNameOut2 = await connector . invokeContract ( {
420
432
contractName,
421
- keychainId : keychainPlugin . getKeychainId ( ) ,
433
+ contractAbi : HelloWorldContractJson . abi ,
434
+ contractAddress,
422
435
invocationType : EthContractInvocationType . SEND ,
423
436
methodName : "getName" ,
424
437
params : [ ] ,
0 commit comments