rust: reverted crate changes until next anchor release

This commit is contained in:
Conner Gallagher 2022-12-08 15:18:00 -07:00
parent ccae193a64
commit c5517ebf84
2 changed files with 13 additions and 5 deletions

View File

@ -23,10 +23,15 @@ cpi = ["no-entrypoint"]
devnet = []
[dependencies]
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "66e4295fe0d2cc2456055bea50e8d227492bdbad" }
anchor-spl = { git = "https://github.com/coral-xyz/anchor.git", rev = "66e4295fe0d2cc2456055bea50e8d227492bdbad" }
anchor-lang = "0.25.0"
anchor-spl = "0.25.0"
rust_decimal = "1.26.0"
solana-program = "1.10"
solana-program = "~1.10.29"
bytemuck = "1.7.2"
superslice = "1"
spl-token = "3.5"
spl-token = "3.3.1"
# solana-program = "1.10"
# spl-token = "3.5"
# anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "66e4295fe0d2cc2456055bea50e8d227492bdbad" }
# anchor-spl = { git = "https://github.com/coral-xyz/anchor.git", rev = "66e4295fe0d2cc2456055bea50e8d227492bdbad" }

View File

@ -101,7 +101,10 @@ impl BufferRelayerAccountData {
}
}
impl Discriminator for BufferRelayerAccountData {
const DISCRIMINATOR: [u8; 8] = [50, 35, 51, 115, 169, 219, 158, 52];
// const DISCRIMINATOR: [u8; 8] = [50, 35, 51, 115, 169, 219, 158, 52];
fn discriminator() -> [u8; 8] {
[50, 35, 51, 115, 169, 219, 158, 52]
}
}
impl Owner for BufferRelayerAccountData {
fn owner() -> solana_program::pubkey::Pubkey {