@@ -165,8 +165,9 @@ func (c Client) BlockEvents(ctx context.Context, blockID []byte, typ string) ([]
165
165
resp , err := c .client .GetEventsForBlockIDs (
166
166
ctx ,
167
167
& access.GetEventsForBlockIDsRequest {
168
- BlockIds : [][]byte {blockID },
169
- Type : typ ,
168
+ BlockIds : [][]byte {blockID },
169
+ Type : typ ,
170
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
170
171
},
171
172
)
172
173
cancel ()
@@ -386,7 +387,8 @@ func (c Client) Transaction(ctx context.Context, hash []byte) (*entities.Transac
386
387
resp , err := c .client .GetTransaction (
387
388
ctx ,
388
389
& access.GetTransactionRequest {
389
- Id : hash ,
390
+ Id : hash ,
391
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
390
392
},
391
393
)
392
394
cancel ()
@@ -406,8 +408,9 @@ func (c Client) TransactionResult(ctx context.Context, blockID []byte, txnIndex
406
408
resp , err := c .client .GetTransactionResultByIndex (
407
409
ctx ,
408
410
& access.GetTransactionByIndexRequest {
409
- BlockId : blockID ,
410
- Index : txnIndex ,
411
+ BlockId : blockID ,
412
+ Index : txnIndex ,
413
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
411
414
},
412
415
)
413
416
cancel ()
@@ -428,7 +431,8 @@ func (c Client) TransactionResultByHash(ctx context.Context, hash []byte) (*acce
428
431
resp , err := c .client .GetTransactionResult (
429
432
ctx ,
430
433
& access.GetTransactionRequest {
431
- Id : hash ,
434
+ Id : hash ,
435
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
432
436
},
433
437
)
434
438
cancel ()
@@ -453,7 +457,8 @@ func (c Client) TransactionResultsByBlockID(ctx context.Context, blockID []byte)
453
457
resp , err := c .client .GetTransactionResultsByBlockID (
454
458
ctx ,
455
459
& access.GetTransactionsByBlockIDRequest {
456
- BlockId : blockID ,
460
+ BlockId : blockID ,
461
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
457
462
},
458
463
)
459
464
cancel ()
@@ -473,7 +478,8 @@ func (c Client) TransactionsByBlockID(ctx context.Context, blockID []byte) ([]*e
473
478
resp , err := c .client .GetTransactionsByBlockID (
474
479
ctx ,
475
480
& access.GetTransactionsByBlockIDRequest {
476
- BlockId : blockID ,
481
+ BlockId : blockID ,
482
+ EventEncodingVersion : entities .EventEncodingVersion_CCF_V0 ,
477
483
},
478
484
)
479
485
cancel ()
0 commit comments