Skip to content

Commit

Permalink
fix RPC endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Oct 4, 2024
1 parent 4e234e3 commit 2f022fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aergo-protobuf
4 changes: 2 additions & 2 deletions rpc/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,12 +1067,12 @@ func (rpc *AergoRPCService) GetReceipt(ctx context.Context, in *types.SingleByte
return rsp.Receipt, rsp.Err
}

func (rpc *AergoRPCService) GetInternalOperations(ctx context.Context, in *types.BlockNo) (*types.SingleBytes, error) {
func (rpc *AergoRPCService) GetInternalOperations(ctx context.Context, in *types.BlockNumberParam) (*types.SingleBytes, error) {
if err := rpc.checkAuth(ctx, ReadBlockChain); err != nil {
return nil, err
}
result, err := rpc.hub.RequestFuture(message.ChainSvc,
&message.GetInternalOperations{BlockNo: *in}, defaultActorTimeout, "rpc.(*AergoRPCService).GetInternalOperations").Result()
&message.GetInternalOperations{BlockNo: in.BlockNo}, defaultActorTimeout, "rpc.(*AergoRPCService).GetInternalOperations").Result()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2f022fe

Please sign in to comment.