@@ -220,7 +220,7 @@ instance SerialiseAsRawBytes (Address ByronAddr) where
220
220
. Shelley. BootstrapAddress
221
221
$ addr
222
222
223
- eitherDeserialiseFromRawBytes (AsAddress AsByronAddr ) bs =
223
+ deserialiseFromRawBytes (AsAddress AsByronAddr ) bs =
224
224
case Shelley. deserialiseAddr bs :: Maybe (Shelley. Addr StandardCrypto ) of
225
225
Nothing -> Left (SerialiseAsRawBytesError " Unable to deserialise Address ByronAddr" )
226
226
Just Shelley. Addr {} -> Left (SerialiseAsRawBytesError " Unable to deserialise Address ByronAddr" )
@@ -231,7 +231,7 @@ instance SerialiseAsRawBytes (Address ShelleyAddr) where
231
231
serialiseToRawBytes (ShelleyAddress nw pc scr) =
232
232
Shelley. serialiseAddr (Shelley. Addr nw pc scr)
233
233
234
- eitherDeserialiseFromRawBytes (AsAddress AsShelleyAddr ) bs =
234
+ deserialiseFromRawBytes (AsAddress AsShelleyAddr ) bs =
235
235
case Shelley. deserialiseAddr bs of
236
236
Nothing -> Left (SerialiseAsRawBytesError " Unable to deserialise bootstrap Address ShelleyAddr" )
237
237
Just Shelley. AddrBootstrap {} -> Left (SerialiseAsRawBytesError " Unable to deserialise bootstrap Address ShelleyAddr" )
@@ -253,7 +253,7 @@ instance SerialiseAddress (Address ByronAddr) where
253
253
254
254
deserialiseAddress (AsAddress AsByronAddr ) txt = do
255
255
bs <- Base58. decodeBase58 Base58. bitcoinAlphabet (Text. encodeUtf8 txt)
256
- rightToMaybe (eitherDeserialiseFromRawBytes (AsAddress AsByronAddr ) bs)
256
+ rightToMaybe (deserialiseFromRawBytes (AsAddress AsByronAddr ) bs)
257
257
258
258
instance SerialiseAddress (Address ShelleyAddr ) where
259
259
serialiseAddress addr@ ShelleyAddress {} =
@@ -326,7 +326,7 @@ instance SerialiseAsRawBytes AddressAny where
326
326
serialiseToRawBytes (AddressByron addr) = serialiseToRawBytes addr
327
327
serialiseToRawBytes (AddressShelley addr) = serialiseToRawBytes addr
328
328
329
- eitherDeserialiseFromRawBytes AsAddressAny bs =
329
+ deserialiseFromRawBytes AsAddressAny bs =
330
330
case Shelley. deserialiseAddr bs of
331
331
Nothing -> Left (SerialiseAsRawBytesError " Unable to deserialise AddressAny" )
332
332
Just (Shelley. AddrBootstrap (Shelley. BootstrapAddress addr)) ->
@@ -452,9 +452,9 @@ instance (IsCardanoEra era, Typeable era) => SerialiseAsRawBytes (AddressInEra e
452
452
serialiseToRawBytes (AddressInEra ShelleyAddressInEra {} addr) =
453
453
serialiseToRawBytes addr
454
454
455
- eitherDeserialiseFromRawBytes _ bs =
455
+ deserialiseFromRawBytes _ bs =
456
456
first (const (SerialiseAsRawBytesError " Unable to deserialise AddressInEra era" )) $
457
- anyAddressInEra cardanoEra =<< first unSerialiseAsRawBytesError (eitherDeserialiseFromRawBytes AsAddressAny bs)
457
+ anyAddressInEra cardanoEra =<< first unSerialiseAsRawBytesError (deserialiseFromRawBytes AsAddressAny bs)
458
458
459
459
instance IsCardanoEra era => SerialiseAddress (AddressInEra era ) where
460
460
serialiseAddress (AddressInEra ByronAddressInAnyEra addr) =
@@ -571,7 +571,7 @@ instance SerialiseAsRawBytes StakeAddress where
571
571
serialiseToRawBytes (StakeAddress nw sc) =
572
572
Shelley. serialiseRewardAcnt (Shelley. RewardAcnt nw sc)
573
573
574
- eitherDeserialiseFromRawBytes AsStakeAddress bs =
574
+ deserialiseFromRawBytes AsStakeAddress bs =
575
575
case Shelley. deserialiseRewardAcnt bs of
576
576
Nothing -> Left (SerialiseAsRawBytesError " Unable to deserialise StakeAddress" )
577
577
Just (Shelley. RewardAcnt nw sc) -> Right (StakeAddress nw sc)
0 commit comments