This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getPriorityFees(instructions: TransactionInstruction[]): Promise<number> { | |
// replace with real function | |
return 426; | |
} | |
async function getSimulationUnits( | |
connection: Connection, | |
instructions: TransactionInstruction[], | |
payer: PublicKey, | |
lookupTables: AddressLookupTableAccount[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Default, Debug)] | |
pub struct Bar { | |
pub bob: String, | |
} | |
#[derive(Default, Debug)] | |
pub struct Foo { | |
pub alice: u16, | |
} |