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
Let us examine each of the helper functions in more detail.
75
-
First of all, we need to define a Viem public client.
75
+
First of all, we need to define a [Viem public client](https://viem.sh/docs/clients/public).
76
76
Since the two Flare mainnets and the two testnets are already registered with Viem, we simply need to import them.
77
77
Then, we create a basic public client with the HTTP transporter.
78
78
@@ -94,8 +94,6 @@ All of them rely primarily on the `readContract` function of the Viem `publicCli
94
94
{/* TODO:(Nik) update the sentence about in development */}
95
95
The `getOperatorXrplAddresses` calls the `getXrplProviderWallets`functionof the `MasterAccountController` contract.
96
96
The functionreturns an array of XRPL addresses; these are all the registered operator XRPL addresses.
97
-
Because the Flare smart accounts are still in development, the `MasterAccountController` contract has not yet been added to the `FlareContractRegistry` contract.
98
-
That is the reason why the address of the `MasterAccountController` has been hardcoded in the example repository.
99
97
100
98
```typescript
101
99
export async functiongetOperatorXrplAddresses() {
@@ -109,6 +107,14 @@ export async function getOperatorXrplAddresses() {
109
107
}
110
108
```
111
109
110
+
Because the Flare smart accounts are still in development, the `MasterAccountController` contract has not yet been added to the `FlareContractRegistry` contract.
111
+
That is the reason why the address of the `MasterAccountController` has been hardcoded in the example repository.
112
+
113
+
```typescript
114
+
export const MASTER_ACCOUNT_CONTROLLER_ADDRESS =
115
+
"0x32F662C63c1E24bB59B908249962F00B61C6638f";
116
+
```
117
+
112
118
## Personal account of an XRPL address
113
119
114
120
There are many situations when it is important or even necessary to know the address of the `PersonalAccount` of an XRPL address;
0 commit comments