bonfida-utils 0.7.0

Various solana program writing utilities in use by Bonfida.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(test)]
mod tests {

    use solana_program::hash::hashv;

    use bonfida_macros::compute_hashv;

    #[test]
    pub fn functional() {
        let record_hash = compute_hashv!("ETH");
        let record_hash_ref = hashv(&["SPL Name Service\x01ETH".as_bytes()]).to_bytes();
        assert_eq!(record_hash, record_hash_ref);
    }
}