Skip to content

Commit 21574a6

Browse files
committed
add missing grpc call opts
1 parent 607d7df commit 21574a6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

access/grpc/grpc.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,13 +657,14 @@ func (c *BaseClient) GetAccountKeyAtLatestBlock(
657657
ctx context.Context,
658658
address flow.Address,
659659
keyIndex uint32,
660+
opts ...grpc.CallOption,
660661
) (*flow.AccountKey, error) {
661662
request := &access.GetAccountKeyAtLatestBlockRequest{
662663
Address: address.Bytes(),
663664
Index: keyIndex,
664665
}
665666

666-
response, err := c.rpcClient.GetAccountKeyAtLatestBlock(ctx, request)
667+
response, err := c.rpcClient.GetAccountKeyAtLatestBlock(ctx, request, opts...)
667668
if err != nil {
668669
return nil, newRPCError(err)
669670
}
@@ -681,14 +682,15 @@ func (c *BaseClient) GetAccountKeyAtBlockHeight(
681682
address flow.Address,
682683
keyIndex uint32,
683684
height uint64,
685+
opts ...grpc.CallOption,
684686
) (*flow.AccountKey, error) {
685687
request := &access.GetAccountKeyAtBlockHeightRequest{
686688
Address: address.Bytes(),
687689
Index: keyIndex,
688690
BlockHeight: height,
689691
}
690692

691-
response, err := c.rpcClient.GetAccountKeyAtBlockHeight(ctx, request)
693+
response, err := c.rpcClient.GetAccountKeyAtBlockHeight(ctx, request, opts...)
692694
if err != nil {
693695
return nil, newRPCError(err)
694696
}
@@ -704,12 +706,13 @@ func (c *BaseClient) GetAccountKeyAtBlockHeight(
704706
func (c *BaseClient) GetAccountKeysAtLatestBlock(
705707
ctx context.Context,
706708
address flow.Address,
709+
opts ...grpc.CallOption,
707710
) ([]*flow.AccountKey, error) {
708711
request := &access.GetAccountKeysAtLatestBlockRequest{
709712
Address: address.Bytes(),
710713
}
711714

712-
response, err := c.rpcClient.GetAccountKeysAtLatestBlock(ctx, request)
715+
response, err := c.rpcClient.GetAccountKeysAtLatestBlock(ctx, request, opts...)
713716
if err != nil {
714717
return nil, newRPCError(err)
715718
}
@@ -726,13 +729,14 @@ func (c *BaseClient) GetAccountKeysAtBlockHeight(
726729
ctx context.Context,
727730
address flow.Address,
728731
height uint64,
732+
opts ...grpc.CallOption,
729733
) ([]*flow.AccountKey, error) {
730734
request := &access.GetAccountKeysAtBlockHeightRequest{
731735
Address: address.Bytes(),
732736
BlockHeight: height,
733737
}
734738

735-
response, err := c.rpcClient.GetAccountKeysAtBlockHeight(ctx, request)
739+
response, err := c.rpcClient.GetAccountKeysAtBlockHeight(ctx, request, opts...)
736740
if err != nil {
737741
return nil, newRPCError(err)
738742
}

0 commit comments

Comments
 (0)