Skip to content

Commit

Permalink
Merge pull request #481 from michavie/address-value-custom-hrp-fix
Browse files Browse the repository at this point in the history
Fix AddressValue to accept custom HRPs
  • Loading branch information
andreibancioiu authored Sep 23, 2024
2 parents 3986959 + 79ea2b3 commit 04376f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smartcontracts/typesystem/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 04376f6

Please sign in to comment.