From 79ea2b3b6003e50bb5fb01cae2cc6bd4650cf801 Mon Sep 17 00:00:00 2001 From: Micha Vie Date: Mon, 23 Sep 2024 09:37:22 +0200 Subject: [PATCH] fix address value to accept custom hrps --- src/smartcontracts/typesystem/address.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smartcontracts/typesystem/address.ts b/src/smartcontracts/typesystem/address.ts index 53391e95..ef8db6d0 100644 --- a/src/smartcontracts/typesystem/address.ts +++ b/src/smartcontracts/typesystem/address.ts @@ -23,7 +23,7 @@ export class AddressValue extends PrimitiveValue { constructor(value: IAddress) { super(new AddressType()); - this.value = new Address(value.bech32()); + this.value = Address.newFromBech32(value.bech32()); } getClassName(): string {