We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3fc9a commit 5fc1d4eCopy full SHA for 5fc1d4e
packages/thirdweb/src/wallets/smart/lib/calls.ts
@@ -83,16 +83,16 @@ export async function predictAddress(args: {
83
if (predictAddress) {
84
return predictAddress(factoryContract, adminAddress);
85
}
86
+ if (accountAddress) {
87
+ return accountAddress;
88
+ }
89
+ if (!adminAddress) {
90
+ throw new Error(
91
+ "Account address is required to predict the smart wallet address.",
92
+ );
93
94
return withCache(
95
async () => {
- if (accountAddress) {
- return accountAddress;
- }
- if (!adminAddress) {
- throw new Error(
- "Account address is required to predict the smart wallet address.",
- );
96
const saltHex =
97
accountSalt && isHex(accountSalt)
98
? accountSalt
0 commit comments