-
Notifications
You must be signed in to change notification settings - Fork 83
Description
🚀 Feature Request Description
Currently, various account-related methods take in different types. For example,
aptos.transaction.build.simple() takes in AccountAddressInput as an argument, while
aptos.transaction.simulate.simple() takes in the PublicKey type, and
aptos.transaction.sign() takes in Account type.
These three methods should ideally take in the same account type or accept multiple types.
Motivation
Is your feature request related to a problem? Please describe your use case.
It is frustrating to have to pass in different types.
Pitch
Describe the solution you would like
It would be great to be able to pass in the Account type and have the SDK method derive required values.
Describe alternatives you've considered
Or have these methods accept multiple types. for example, like this: Account | AccountAddressInput
Are you willing to open a pull request? (See CONTRIBUTING)
I can take a look at this when I get some free time, but not guaranteed.