Skip to content
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

Performing a transaction #29

Closed
wants to merge 1 commit into from
Closed

Performing a transaction #29

wants to merge 1 commit into from

Conversation

aaroncox
Copy link
Member

This PR includes a test showing how we'd pass the data to a session.transact call.

Now that the contract no longer has a contract.call method, we lost the one place where we could pass in the ABI automatically for the developer trying to perform a transaction.

I'm trying to figure out the best way to add this functionality back in.

One idea I had: Could we have a ContractAction which extends Action, that is the same thing as an Action except with a Contract saved to it? If the contract.action('transfer') call returned one of these ContractAction instances and that's what was passed to the session kit, the session kit could just extract the ABI from the Contract automatically during transact.

@dafuga
Copy link
Contributor

dafuga commented Jul 22, 2023

Yeah, I think that makes sense!

@aaroncox
Copy link
Member Author

Related: wharfkit/antelope#69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants