Skip to content

Commit

Permalink
rename getSmartAccountAddress -> getAccountAddress for V2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrockrises committed Sep 24, 2023
1 parent b313737 commit 6f5e224
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/Biconomy AA Stack/Account/initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let biconomySmartAccount = await BiconomySmartAccountV2.create({
defaultValidationModule: ownerShipModule, // either ECDSA or Multi chain to start
activeValidationModule: ownerShipModule // either ECDSA or Multi chain to start
})
const address = await biconomySmartAccount.getSmartAccountAddress()
const address = await biconomySmartAccount.getAccountAddress()
console.log("address", address)
```

Expand Down
2 changes: 1 addition & 1 deletion docs/Biconomy AA Stack/Account/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const biconomyAccount = await BiconomySmartAccountV2.create({
defaultValidationModule: ownerShipModule, // either ECDSA or Multi chain to start
activeValidationModule: ownerShipModule // either ECDSA or Multi chain to start
})
const address = await biconomySmartAccount.getSmartAccountAddress()
const address = await biconomySmartAccount.getAccountAddress()

```

2 changes: 1 addition & 1 deletion docs/howtos/creatingAccounts/ethers.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function createAccount() {
activeValidationModule: module
})
console.log("owner: ", biconomySmartAccount.owner)
console.log("address: ", await biconomySmartAccount.getSmartAccountAddress())
console.log("address: ", await biconomySmartAccount.getAccountAddress())
return biconomySmartAccount;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/howtos/creatingAccounts/socialLogin/magic.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const connect = async () => {
activeValidationModule: module
})

const address = await biconomySmartAccount.getSmartAccountAddress()
const address = await biconomySmartAccount.getAccountAddress()
} catch (error) {
console.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/howtos/creatingAccounts/socialLogin/particle.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const connect = async () => {
activeValidationModule: module
})

const address = await biconomySmartAccount.getSmartAccountAddress()
const address = await biconomySmartAccount.getAccountAddress()
} catch (error) {
console.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function createAccount() {
activeValidationModule: module
})
console.log("owner: ", biconomySmartAccount.owner)
console.log("address: ", await biconomySmartAccount.getSmartAccountAddress())
console.log("address: ", await biconomySmartAccount.getAccountAddress())
return biconomySmartAccount;
}

Expand Down
10 changes: 5 additions & 5 deletions docs/tutorials/React_vite/sdk-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ async function setupSmartAccount() {
activeValidationModule: module
})
console.log("owner: ", biconomySmartAccount.owner)
console.log("address: ", await biconomySmartAccount.getSmartAccountAddress())
console.log("deployed: ", await biconomySmartAccount.isAccountDeployed( await biconomySmartAccount.getSmartAccountAddress()))
console.log("address: ", await biconomySmartAccount.getAccountAddress())
console.log("deployed: ", await biconomySmartAccount.isAccountDeployed( await biconomySmartAccount.getAccountAddress()))

setSmartAccount(biconomySmartAccount)
setLoading(false)
Expand Down Expand Up @@ -242,12 +242,12 @@ step-by-step explanation of what it does:
address of the smart account owner.
- **console.log("address: ", await
biconomySmartAccount.getSmartAccountAddress()):** Logs the Ethereum address
of the BiconomySmartAccount using the getSmartAccountAddress() method. This
biconomySmartAccount.getAccountAddress()):** Logs the Ethereum address
of the BiconomySmartAccount using the getAccountAddress() method. This
address is the entrypoint address mentioned earlier, and it serves as the
point of entry for interacting with the smart account through Biconomy.
- **`console.log("deployed: ", await biconomySmartAccount.isAccountDeployed(await biconomySmartAccount.getSmartAccountAddress()))`:**
- **`console.log("deployed: ", await biconomySmartAccount.isAccountDeployed(await biconomySmartAccount.getAccountAddress()))`:**
Logs whether the smart account has been deployed or not. It calls the
isAccountDeployed() method on the BiconomySmartAccount instance, passing the
entrypoint address as an argument.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nextjs/gaslesstransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const connect = async () => {
defaultValidationModule: module,
activeValidationModule: module
})
setAddress( await biconomySmartAccount.getSmartAccountAddress())
setAddress( await biconomySmartAccount.getAccountAddress())
setSmartAccount(biconomySmartAccount)
setLoading(false)
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nextjs/sdkintegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const connect = async () => {
defaultValidationModule: module,
activeValidationModule: module
})
setAddress( await biconomySmartAccount.getSmartAccountAddress())
setAddress( await biconomySmartAccount.getAccountAddress())
setSmartAccount(biconomySmartAccount)
setLoading(false)
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nodejs/batchingTransactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function createAccount() {
defaultValidationModule: module,
activeValidationModule: module
})
address = await biconomySmartAccount.getSmartAccountAddress()
address = await biconomySmartAccount.getAccountAddress()
smartAccount = biconomySmartAccount;
return biconomySmartAccount;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nodejs/gaslessmint.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function createAccount() {
defaultValidationModule: module,
activeValidationModule: module
})
address = await biconomySmartAccount.getSmartAccountAddress()
address = await biconomySmartAccount.getAccountAddress()
smartAccount = biconomySmartAccount;
return biconomySmartAccount;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nodejs/initializeaccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function createAccount() {
activeValidationModule: module
})
console.log("owner: ", biconomySmartAccount.owner)
console.log("address: ", await biconomySmartAccount.getSmartAccountAddress())
console.log("address: ", await biconomySmartAccount.getAccountAddress())
return biconomySmartAccount;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/nodejs/multichainmint.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function createAccount() {
defaultValidationModule: module,
activeValidationModule: module
})
address = await biconomySmartAccount.getSmartAccountAddress()
address = await biconomySmartAccount.getAccountAddress()
smartAccount = biconomySmartAccount;
return biconomySmartAccount;
}
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/nodejs/paywitherc20.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function createAccount() {
defaultValidationModule: module,
activeValidationModule: module
})
address = await biconomySmartAccount.getSmartAccountAddress()
address = await biconomySmartAccount.getAccountAddress()
smartAccount = biconomySmartAccount;
return biconomySmartAccount;
}
Expand Down Expand Up @@ -329,7 +329,7 @@ async function createAccount() {
defaultValidationModule: module,
activeValidationModule: module
})
address = await biconomySmartAccount.getSmartAccountAddress()
address = await biconomySmartAccount.getAccountAddress()
console.log(address)
smartAccount = biconomySmartAccount;
return biconomySmartAccount;
Expand Down

0 comments on commit 6f5e224

Please sign in to comment.