Skip to content

Commit 9f290a0

Browse files
committed
feat: unify txout and assets module, better devx, improve toJSON
1 parent e21b7f5 commit 9f290a0

15 files changed

+962
-49
lines changed

packages/evolution/src/core/Address.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class Address extends Schema.Class<Address>("AddressStructure")({
2525
toJSON() {
2626
return {
2727
networkId: this.networkId,
28-
paymentCredential: this.paymentCredential,
29-
stakingCredential: this.stakingCredential
28+
paymentCredential: this.paymentCredential.toJSON(),
29+
stakingCredential: this.stakingCredential?.toJSON()
3030
}
3131
}
3232

packages/evolution/src/core/AssetName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class AssetName extends Schema.TaggedClass<AssetName>()("AssetName", {
2222
toJSON() {
2323
return {
2424
_tag: "AssetName",
25-
bytes: this.bytes
25+
bytes: Bytes.toHexUnsafe(this.bytes)
2626
}
2727
}
2828

0 commit comments

Comments
 (0)