You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,6 +246,9 @@ The e2e test can be found at:
246
246
247
247
The Bech32 address of this wallet is `fuel1x33ajpj0jy5p2wcqqu45e32r75zrwfeh6hwqfv5un670rv4p0mns58enjg`. This address can be funded via the [faucet](https://faucet-testnet.fuel.network/).
248
248
249
+
> [!NOTE] Note
250
+
> `Bech32` addresses like `fuel1..` are now deprecated. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
251
+
249
252
If you want to run an e2e test locally, you can provide your own wallet address and private key. For obvious security reasons, the private key should not be shared.
250
253
251
254
These can be overridden by generating an environment file:
Copy file name to clipboardExpand all lines: apps/docs/src/guide/contracts/managing-deployed-contracts.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ The `contractId` property from the [`Contract`](../../api/Program/Contract.md) c
8
8
9
9
The [`Address`](../../api/Address/Address.md) class wraps all methods from the [`AbstractAddress`](../../api/Interfaces/AbstractAddress.md) class and adds a single property: `bech32Address`. This property is a string encoded in [`Bech32`](../types/bech32.md) format, recognizable by the human-readable prefix `fuel` followed by the separator `1`.
10
10
11
+
> [!NOTE] Note
12
+
> `Bech32` addresses like `fuel1..` are now deprecated; please switch to B256 format, for more details see [here](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256).
13
+
11
14
When you log the `contractId` property of an instantiated Contract using `console.log`, the output appears as follows:
> `Bech32` addresses like `fuel1..` are now deprecated. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
29
+
27
30
### From a Public Key
28
31
29
32
To create an [`Address`](../../api/Address/Address.md) from a public key, use the following code snippet:
Copy file name to clipboardExpand all lines: apps/docs/src/guide/types/bech32.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
# `Bech32`
2
2
3
+
> [!NOTE] Note
4
+
> `Bech32` addresses like `fuel1..` are now deprecated. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
5
+
3
6
The SDK uses the `Bech32` type as the core property of the [`Address`](../../api/Address/Address.md) class, specifically through the `bech32Address` property.
4
7
5
8
Originally designed for Bitcoin, the `Bech32` format offers numerous advantages such as enhanced error detection, simplified integrations, and improved compatibility with future upgrades. Given these benefits, the [`Address`](../../api/Address/Address.md) class is constructed around the `Bech32` type.
> `Bech32` addresses like `fuel1..` are now deprecated. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
11
+
9
12
However, a hexlified [Bits256](../types/bits256.md) (hex) is another common address format; an example can be seen below:
Copy file name to clipboardExpand all lines: packages/address/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
5
5
This module contains the utilities for encoding and decoding address and contract ids between Bech32 and other address formats.
6
6
7
+
> [!NOTE] Note
8
+
> `Bech32` addresses like `fuel1..` are now deprecated. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
Copy file name to clipboardExpand all lines: packages/address/src/address.ts
+25-23Lines changed: 25 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -30,21 +30,30 @@ import {
30
30
*/
31
31
exportdefaultclassAddressextendsAbstractAddress{
32
32
// #region address-2
33
+
/**
34
+
* @deprecated
35
+
* Type `Bech32Address` is now deprecated, as is this property. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
36
+
*/
33
37
readonlybech32Address: Bech32Address;
34
38
// #endregion address-2
35
39
36
40
/**
37
-
* @param address - A Bech32 address
41
+
* @param address - A Bech32 address or B256 address
* Type `Bech32Address` is now deprecated, as is this method. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
* Type `Bech32Address` is now deprecated, as is this function. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
@@ -32,7 +33,8 @@ export function fromBech32(address: Bech32Address): Decoded {
32
33
33
34
/**
34
35
* Converts a B256 address string into Bech32
35
-
*
36
+
* @deprecated
37
+
* Type `Bech32Address` is now deprecated, as is this function. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
@@ -44,7 +46,8 @@ export function toBech32(address: B256Address): Bech32Address {
44
46
45
47
/**
46
48
* Determines if a given string is Bech32 format
47
-
*
49
+
* @deprecated
50
+
* Type `Bech32Address` is now deprecated, as is this function. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
@@ -84,7 +87,8 @@ export function isEvmAddress(address: string): boolean {
84
87
85
88
/**
86
89
* Takes a Bech32 address and returns the byte data
87
-
*
90
+
* @deprecated
91
+
* The `bech32Address` is now deprecated. Please migrate to B256 format (see https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256 for more details) as this will be the standard going forward.
Copy file name to clipboardExpand all lines: packages/errors/src/error-codes.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,12 @@ export enum ErrorCode {
25
25
WORKSPACE_NOT_DETECTED='workspace-not-detected',
26
26
27
27
// address
28
+
/**
29
+
* @deprecated
30
+
* Type `Bech32Address` is now deprecated, as is this constant. Use `B256` addresses instead. ([help](https://docs.fuel.network/docs/specs/abi/argument-encoding/#b256))
0 commit comments