In plutus endpoint, I want to convert Address type value to get addr_testXXX format address.
I have try :
import Cardano.Api ( SerialiseAddress (deserialiseAddress, serialiseAddress) ) ... -- here, var 'testAddr' is of 'Address' type printf "ledger address is: %s" $ show $ serialiseAddress testAddr
but it raised error when compiling:
• No instance for (SerialiseAddress plutus-ledger-api-0.1.0.0:Plutus.V1.Ledger.Address.Address) arising from a use of ‘serialiseAddress’
From google, I found this: https://github.com/functionally/mantis/blob/1cd121202452dcc1bce56ed4b4f41f0e880c9d04/src/Mantra/Wallet.hs#L56
It seem that I should convert
AddressAny, but don't know how to.
Any help will be appreciated!