Skip to content

Commit

Permalink
Merge pull request #464 from Prakash-Shelar/master
Browse files Browse the repository at this point in the history
Add note for addressGroup in wallet connection
  • Loading branch information
polarker authored Oct 25, 2024
2 parents f2ec85d + bd1d381 commit bd2c70d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/sdk/web3-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ parameter is optional. If specified, the wallet provider will connect
to an address in the specified group, otherwise the wallet provider
will connect to address from any group.

Note: When interacting with a deployed smart contract, use the same `addressGroup` that was specified during deployment. To identify the `addressGroup` of a deployed contract, use the following code:

```typescript
import { groupOfAddress } from '@alephium/web3';
const index = groupOfAddress(contractAddress);
```

This code retrieves the group index associated with the contract, confirming the correct `addressGroup`.

The `displayAccount` parameter in the `AlephiumConnectButton`
component is used to specify the content displayed after the wallet is
connected. By default, the connected address will be displayed.
Expand Down

0 comments on commit bd2c70d

Please sign in to comment.