Trait fvm_actor_utils::receiver::UniversalReceiver
source · pub trait UniversalReceiver {
// Required method
fn receive(params: UniversalReceiverParams);
}
Expand description
Standard interface for an actor that wishes to receive FRC-0046 tokens or other assets
Required Methods§
sourcefn receive(params: UniversalReceiverParams)
fn receive(params: UniversalReceiverParams)
Invoked by a token actor during pending transfer or mint to the receiver’s address
Within this hook, the token actor has optimistically persisted the new balance so the receiving actor can immediately utilise the received funds. If the receiver wishes to reject the incoming transfer, this function should abort which will cause the token actor to rollback the transaction.
Object Safety§
This trait is not object safe.