1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use crate::{
    api::{BlockchainApi, ManagedTypeApi, PrintApi},
    types::BigUint,
};

pub struct PrintHelper<M: ManagedTypeApi> {
    api: M,
}

impl<M: ManagedTypeApi> PrintHelper<M>
where
    M: PrintApi + ManagedTypeApi + BlockchainApi,
{
    pub(crate) fn new(api: M) -> Self {
        PrintHelper { api }
    }

    pub fn print_biguint(&self, biguint: &BigUint<M>) {
        self.api.print_biguint(biguint);
    }
}