Skip to content

Commit e21b7f5

Browse files
committed
fix: docs
1 parent fddf4e5 commit e21b7f5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/content/docs/addresses/address-types/base.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const address = new Core.BaseAddress.BaseAddress({
3636
});
3737

3838
// Convert to Bech32 string
39-
const bech32 = Core.Address.toBech32(address);
39+
const bech32 = Core.AddressEras.toBech32(address);
4040
console.log(bech32); // "addr1..."
4141
```
4242

@@ -49,7 +49,7 @@ import { Core } from "@evolution-sdk/evolution";
4949

5050
const bech32 = "addr1qx2kd28nq8ac5prwg32hhvudlwggpgfp8utlyqxu6wqgz62f79qsdmm5dsknt9ecr5w468r9ey0fxwkdrwh08ly3tu9sy0f4qd";
5151

52-
const address = Core.Address.fromBech32(bech32) as Core.BaseAddress.BaseAddress;
52+
const address = Core.AddressEras.fromBech32(bech32) as Core.BaseAddress.BaseAddress;
5353

5454
console.log("Network ID:", address.networkId);
5555
console.log("Payment:", address.paymentCredential);
@@ -74,7 +74,7 @@ const scriptAddress = new Core.BaseAddress.BaseAddress({
7474
})
7575
});
7676

77-
const bech32 = Core.Address.toBech32(scriptAddress);
77+
const bech32 = Core.AddressEras.toBech32(scriptAddress);
7878
console.log("Script-based address:", bech32);
7979
```
8080

docs/content/docs/addresses/address-types/enterprise.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const address = new Core.EnterpriseAddress.EnterpriseAddress({
3131
});
3232

3333
// Convert to Bech32 string
34-
const bech32 = Core.Address.toBech32(address);
34+
const bech32 = Core.AddressEras.toBech32(address);
3535
console.log(bech32); // "addr1..."
3636
```
3737

@@ -44,7 +44,7 @@ import { Core } from "@evolution-sdk/evolution";
4444

4545
const bech32 = "addr1vx2kd28nq8ac5prwg32hhvudlwggpgfp8utlyqxu6wqgz6cevnrgl";
4646

47-
const address = Core.Address.fromBech32(bech32) as Core.EnterpriseAddress.EnterpriseAddress;
47+
const address = Core.AddressEras.fromBech32(bech32) as Core.EnterpriseAddress.EnterpriseAddress;
4848

4949
console.log("Network ID:", address.networkId);
5050
console.log("Payment:", address.paymentCredential);
@@ -66,7 +66,7 @@ const scriptAddr = new Core.EnterpriseAddress.EnterpriseAddress({
6666
});
6767

6868
// Convert to Bech32 string
69-
const bech32 = Core.Address.toBech32(scriptAddr);
69+
const bech32 = Core.AddressEras.toBech32(scriptAddr);
7070
console.log("Script enterprise address:", bech32);
7171
```
7272

docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./out/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)