@tari-project/tarijs 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docusaurus/tari-docs/package.json +1 -1
- package/examples/vite-typescript-react/src/App.tsx +2 -2
- package/package.json +2 -2
- package/packages/builders/package.json +1 -1
- package/packages/indexer_provider/package.json +1 -1
- package/packages/metamask_signer/package.json +1 -1
- package/packages/permissions/package.json +1 -1
- package/packages/react-mui-connect-button/package.json +1 -1
- package/packages/tari_provider/package.json +1 -1
- package/packages/tari_signer/package.json +1 -1
- package/packages/tari_universe/package.json +1 -1
- package/packages/tarijs/package.json +1 -1
- package/packages/tarijs_types/package.json +1 -1
- package/packages/wallet_daemon/package.json +1 -1
- package/packages/wallet_daemon/src/signer.ts +4 -5
- package/packages/walletconnect/package.json +1 -1
|
@@ -31,8 +31,8 @@ function App() {
|
|
|
31
31
|
<div>
|
|
32
32
|
<h2>Connected Account</h2>
|
|
33
33
|
<p>Account ID: {account.account_id}</p>
|
|
34
|
-
<p>
|
|
35
|
-
<p>
|
|
34
|
+
<p>Component: {account.component_address}</p>
|
|
35
|
+
<p>Wallet Address: {account.wallet_address}</p>
|
|
36
36
|
<h3>Resources:</h3>
|
|
37
37
|
<ul>
|
|
38
38
|
{account.vaults.map((resource, index) => (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/tarijs",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typescript-eslint": "^8.35.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tari-project/tarijs-types": "^0.14.
|
|
22
|
+
"@tari-project/tarijs-types": "^0.14.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"docs": "typedoc",
|
|
@@ -144,17 +144,16 @@ export class WalletDaemonTariSigner implements TariSigner {
|
|
|
144
144
|
|
|
145
145
|
public async getAccount(): Promise<AccountData> {
|
|
146
146
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
147
|
-
const { account,
|
|
148
|
-
const address = typeof account.address === "object" ? account.address.Component : account.address;
|
|
147
|
+
const { account, address } = await this.client.accountsGetDefault({});
|
|
149
148
|
const { balances } = await this.client.accountsGetBalances({
|
|
150
|
-
account: { ComponentAddress:
|
|
149
|
+
account: { ComponentAddress: account.component_address },
|
|
151
150
|
refresh: false,
|
|
152
151
|
});
|
|
153
152
|
|
|
154
153
|
return {
|
|
155
154
|
account_id: account.key_index,
|
|
156
|
-
component_address:
|
|
157
|
-
wallet_address:
|
|
155
|
+
component_address: account.component_address,
|
|
156
|
+
wallet_address: address,
|
|
158
157
|
// TODO: should be vaults not resources
|
|
159
158
|
vaults: balances.map((b: any) => ({
|
|
160
159
|
type: b.resource_type,
|