Skip to content

Commit c556f18

Browse files
committed
fix(docs): update configuration.mdx to use Core UTxO properties
1 parent ef563f3 commit c556f18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/content/docs/devnet/configuration.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ After creating a genesis configuration, calculate the resulting UTxOs to verify
121121

122122
```typescript twoslash
123123
import { Config, Genesis } from "@evolution-sdk/devnet";
124+
import { Core } from "@evolution-sdk/evolution";
124125
declare const addressHex: string;
125126

126127
const genesisConfig = {
@@ -135,10 +136,10 @@ const genesisUtxos = await Genesis.calculateUtxosFromConfig(genesisConfig);
135136

136137
console.log("Genesis UTxOs:", genesisUtxos.length);
137138
genesisUtxos.forEach(utxo => {
138-
console.log("Address:", utxo.address);
139+
console.log("Address:", Core.Address.toBech32(utxo.address));
139140
console.log("Amount:", utxo.assets.lovelace, "lovelace");
140-
console.log("TxHash:", utxo.txHash);
141-
console.log("OutputIndex:", utxo.outputIndex);
141+
console.log("TxHash:", Core.TransactionHash.toHex(utxo.transactionId));
142+
console.log("OutputIndex:", utxo.index);
142143
});
143144
```
144145

0 commit comments

Comments
 (0)