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.
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 extendsAction
, that is the same thing as anAction
except with aContract
saved to it? If thecontract.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 duringtransact
.