Skip to content

Commit 4f59553

Browse files
author
Jenita
committed
feat: added error handling to Utxprpc()
Signed-off-by: Jenita <[email protected]>
1 parent 44c9937 commit 4f59553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ledger/shelley/genesis.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package shelley
1717
import (
1818
"encoding/hex"
1919
"encoding/json"
20-
"fmt"
20+
"errors"
2121
"io"
2222
"math/big"
2323
"os"
@@ -217,7 +217,7 @@ func (g *ShelleyGenesis) GetInitialPools() (map[string]GenesisPool, map[string][
217217
func (g *ShelleyGenesis) GetPoolById(poolId string) (*GenesisPool, []string, error) {
218218
pool, exists := g.Staking.Pools[poolId]
219219
if !exists {
220-
return nil, nil, fmt.Errorf("pool not found")
220+
return nil, nil, errors.New("pool not found")
221221
}
222222

223223
var delegators []string

0 commit comments

Comments
 (0)