From c31ba77dbd2b82c000078bdf8c89f8ce4fa432d3 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Thu, 23 Feb 2023 15:48:04 +0100 Subject: [PATCH] fix(logic): make addressPairToBech32 private --- x/logic/predicate/address.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/logic/predicate/address.go b/x/logic/predicate/address.go index d7cb2b34..f82f60da 100644 --- a/x/logic/predicate/address.go +++ b/x/logic/predicate/address.go @@ -48,7 +48,7 @@ func Bech32Address(vm *engine.VM, address, bech32 engine.Term, cont engine.Cont, switch addressPair := env.Resolve(address).(type) { case engine.Compound: - bech32Decoded, err := AddressPairToBech32(addressPair, env) + bech32Decoded, err := addressPairToBech32(addressPair, env) if err != nil { return engine.Error(fmt.Errorf("bech32_address/2: %w", err)) } @@ -59,7 +59,7 @@ func Bech32Address(vm *engine.VM, address, bech32 engine.Term, cont engine.Cont, }) } -func AddressPairToBech32(addressPair engine.Compound, env *engine.Env) (string, error) { +func addressPairToBech32(addressPair engine.Compound, env *engine.Env) (string, error) { if addressPair.Functor() != AtomPair || addressPair.Arity() != 2 { return "", fmt.Errorf("address should be a Pair '-(Hrp, Address)'") }