massa
massa copied to clipboard
Forbid coin transfers towards SC addresses
Make sure that normal transfer operations and ABI calls cannot credit SC addresses, and that the only way to send them coins is through function calls. This will allow filtering incoming funds and not allowing uncontrolled credits.
I don't really the need for that, can you maybe explain why incoming funds from transaction is a problem ?
I don't really the need for that, can you maybe explain why incoming funds from transaction is a problem ?
The SC cannot refuse them. See the discussion on discord/Dusa channel
I'll take this one, as it's a good synergy with #3475
I don't really the need for that, can you maybe explain why incoming funds from transaction is a problem ?
The SC cannot refuse them. See the discussion on discord/Dusa channel
@damip is this the discussion you're referring to? https://discord.com/channels/761151090673844244/973847775060054026/1029769416549871708
Are there any other convos/informations that I can refer to for better context?
I jump in to say it's also related to the PR you make to have differentiation between user address and sc address so I think it's like a followup so your PR.
agreed.
It's the right discord convo.
- for the
Operation::Transaction
operation type: the operation fails if thesender
ordestination
is an SC address - for ABI coin transfers, the transfer fails if the destination is an SC address, unless the sender has write access to it
It's a followup after the "address type" PR
Waiting on versioning to get started.
Done in https://github.com/massalabs/massa/pull/4027