-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account enhancement #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a real step forward in the account management!
src/account.ts
Outdated
* @param selector function in the contract to be called | ||
* @param calldata calldata to use as input for the contract call | ||
*/ | ||
abstract adaptArgs(toAddress: string, selector: string, calldata: StringMap): any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adaptArgs
doesn't have to be in the abstract class, it's an implementation detail.
Either that, or call/invoke can be template methods already implemented in the abstract class, relying on methods yet to be overriden in child classes (methods like adaptArgs
or getExecuteFunction
.
ef0a06a
to
c071aec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readme corrections can be done with the release of a new version. Can be merged.
Add Account class, which serves as a proxy for contract interaction