@@ -20,6 +20,7 @@ import (
20
20
21
21
"github.com/blinklabs-io/gouroboros/cbor"
22
22
"github.com/blinklabs-io/gouroboros/ledger"
23
+ ledgercommon "github.com/blinklabs-io/gouroboros/ledger/common"
23
24
"github.com/blinklabs-io/gouroboros/protocol"
24
25
"github.com/blinklabs-io/gouroboros/protocol/common"
25
26
)
@@ -303,7 +304,7 @@ func (c *Client) GetNonMyopicMemberRewards() (*NonMyopicMemberRewardsResult, err
303
304
}
304
305
305
306
// GetCurrentProtocolParams returns the set of protocol params that are currently in effect
306
- func (c * Client ) GetCurrentProtocolParams () (CurrentProtocolParamsResult , error ) {
307
+ func (c * Client ) GetCurrentProtocolParams () (ledgercommon. ProtocolParameters , error ) {
307
308
c .Protocol .Logger ().
308
309
Debug ("calling GetCurrentProtocolParams()" ,
309
310
"component" , "network" ,
@@ -327,37 +328,37 @@ func (c *Client) GetCurrentProtocolParams() (CurrentProtocolParamsResult, error)
327
328
if err := c .runQuery (query , & result ); err != nil {
328
329
return nil , err
329
330
}
330
- return result [0 ], nil
331
+ return & result [0 ], nil
331
332
case ledger .EraIdBabbage :
332
333
result := []ledger.BabbageProtocolParameters {}
333
334
if err := c .runQuery (query , & result ); err != nil {
334
335
return nil , err
335
336
}
336
- return result [0 ], nil
337
+ return & result [0 ], nil
337
338
case ledger .EraIdAlonzo :
338
339
result := []ledger.AlonzoProtocolParameters {}
339
340
if err := c .runQuery (query , & result ); err != nil {
340
341
return nil , err
341
342
}
342
- return result [0 ], nil
343
+ return & result [0 ], nil
343
344
case ledger .EraIdMary :
344
345
result := []ledger.MaryProtocolParameters {}
345
346
if err := c .runQuery (query , & result ); err != nil {
346
347
return nil , err
347
348
}
348
- return result [0 ], nil
349
+ return & result [0 ], nil
349
350
case ledger .EraIdAllegra :
350
351
result := []ledger.AllegraProtocolParameters {}
351
352
if err := c .runQuery (query , & result ); err != nil {
352
353
return nil , err
353
354
}
354
- return result [0 ], nil
355
+ return & result [0 ], nil
355
356
case ledger .EraIdShelley :
356
357
result := []ledger.ShelleyProtocolParameters {}
357
358
if err := c .runQuery (query , & result ); err != nil {
358
359
return nil , err
359
360
}
360
- return result [0 ], nil
361
+ return & result [0 ], nil
361
362
default :
362
363
return nil , fmt .Errorf ("unknown era ID: %d" , currentEra )
363
364
}
0 commit comments