I am trying to familiarize myself with this new revolution of abstract accounts. I have seen zerodev's tutorial but I want to do my own tests.
I want to mimic a "normal" behavior of EOA account with an AA account.
That is, it pays for what it does.
But I can't get the account pay gas.
Everything is paid by the service.
I guess that's why I can't call a payable function to buy an nft.
To begin with I don't know if it is well implemented like this, introducing the value parameter as in the ethers.js library:
I have placed a console log inside the handle and I get undefined. This explains why it does not fire the function.
I don't know why it arrives uninitialized.
I have executed it but the payment has not been made. In the hash transaction you only see a gas payment transfer. But no transfer for the nft price is seen.
Depends on what package you're using (web3.js, ethers.js, etc).
And possibly even what version of that package you're using.
It is mostly denoted either with gas or with gasLimit.
In order to solve my problem I would have to solve the first concern. Can payable functions be used with AA?
Because without knowing that I don't know if I am wasting my time and using the tool incorrectly.