Define self for icepick_module::Module to allow self-reference during operations #16

Open
opened 2024-11-26 16:55:15 +00:00 by ryan · 0 comments
Owner

This is useful for on-chain tokens since we could define PYTH as:

let pyth = icepick_solana::spl_token::Token {
    token_address: "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3",
    token_name: "PYTH",
};
This is useful for on-chain tokens since we could define PYTH as: ```rust let pyth = icepick_solana::spl_token::Token { token_address: "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3", token_name: "PYTH", }; ```
ryan added this to the Custody Framework project 2024-11-26 16:56:45 +00:00
ryan added a new dependency 2024-11-26 16:56:55 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: public/icepick#16
No description provided.