Best way to make a AccountContract payable?

if I want one of my contracts to be payable, accept ETH. Whats the best way to do it. I dont see any logic in the Account.cairo from openzeppelin to handle that or is it native support from starknet?

13 Likes

StarkNet Ether is currently implemented as yet another ERC20 token. There’s no “native” currency like on layer-1, so the whole concept of “payable” doesn’t apply here.

Also, ERC20 tokens feature no pre/post-transfer hooks so it isn’t even possible to simulate such behavior.

13 Likes