Skip to content

Commit

Permalink
Merge pull request #1770 from aeternity/feature/fix-error
Browse files Browse the repository at this point in the history
refactor(account): note that callData can replace sourceCode and args
  • Loading branch information
davidyuk authored Mar 27, 2023
2 parents 42d1aec + 32259f8 commit 20607c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account/Generalized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class AccountGeneralized extends AccountBase {
}

if (sourceCode == null || args == null) {
throw new InvalidAuthDataError('Auth data must contain source code and arguments.');
throw new InvalidAuthDataError('Auth data must contain sourceCode and args or callData.');
}
const contract = await Contract.initialize({ onCompiler, onNode, sourceCode });
return contract._calldata.encode(contract._name, this.#authFun, args);
Expand Down

0 comments on commit 20607c9

Please sign in to comment.