A Question on resource definition

Hi Flowmates,

I am working on the Cadence tutorial. In non-fungible token section, there is a resource definition for vault resource. Based on what I learned in the first section of the tutorial I couldn’t find out the role of Provider and Reciever in the following script to define Vault resource:

pub resource Vault: Provider, Receiver {

Would be grateful if any of you let me know how can I learn thoroughly the script to define resources

Hi Ahmad,

Provider and Receiver are Interfaces.

See: Interfaces - Flow Documentation

1 Like