Merge branch 'main' into marvin/refactor-amm-program

This commit is contained in:
jonesmarvin8
2026-02-11 19:05:16 -05:00
15 changed files with 217 additions and 87 deletions
+4 -4
View File
@@ -288,12 +288,12 @@ pub mod tests {
let tx = transaction_for_tests();
let expected_signer_account_ids = vec![
AccountId::new([
208, 122, 210, 232, 75, 39, 250, 0, 194, 98, 240, 161, 238, 160, 255, 53, 202, 9,
115, 84, 126, 106, 16, 111, 114, 241, 147, 194, 220, 131, 139, 68,
148, 179, 206, 253, 199, 51, 82, 86, 232, 2, 152, 122, 80, 243, 54, 207, 237, 112,
83, 153, 44, 59, 204, 49, 128, 84, 160, 227, 216, 149, 97, 102,
]),
AccountId::new([
231, 174, 119, 197, 239, 26, 5, 153, 147, 68, 175, 73, 159, 199, 138, 23, 5, 57,
141, 98, 237, 6, 207, 46, 20, 121, 246, 222, 248, 154, 57, 188,
30, 145, 107, 3, 207, 73, 192, 230, 160, 63, 238, 207, 18, 69, 54, 216, 103, 244,
92, 94, 124, 248, 42, 16, 141, 19, 119, 18, 14, 226, 140, 204,
]),
];
let signer_account_ids = tx.signer_account_ids();
+2 -1
View File
@@ -48,7 +48,8 @@ impl PublicKey {
impl From<&PublicKey> for AccountId {
fn from(key: &PublicKey) -> Self {
const PUBLIC_ACCOUNT_ID_PREFIX: &[u8; 32] = b"/NSSA/v0.2/AccountId/Public/\x00\x00\x00\x00";
const PUBLIC_ACCOUNT_ID_PREFIX: &[u8; 32] =
b"/LEE/v0.3/AccountId/Public/\x00\x00\x00\x00\x00";
let mut hasher = Sha256::new();
hasher.update(PUBLIC_ACCOUNT_ID_PREFIX);