-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escrow smart contract #2
Comments
Functions need to be
|
can you assign this issue to me |
use solana_program::{ entrypoint!(process_instruction); fn process_instruction(
} fn initiate_transfer(accounts: &[AccountInfo], amount_data: &[u8]) -> ProgramResult {
} fn revert_transfer(accounts: &[AccountInfo]) -> ProgramResult {
} fn dispense_transfer(accounts: &[AccountInfo]) -> ProgramResult {
} In this code: initiate_transfer is called to escrow the specified amount from the provider's account. It stores the provider and receiver addresses in the escrow account data. |
use anchor_lang::prelude::*; declare_id!("Fg6PaFpoGXkYsidMpWFKtnpM7K6JZrTAmL5qXXCijMWd"); pub mod solana_escrow {
} #[derive(Accounts)] #[derive(Accounts)] #[derive(Accounts)] #[account] |
A simple smart contract that takes
as inputs to escrow the amount from the provider and keep it until the task is done
Needs to be done on solana
The text was updated successfully, but these errors were encountered: