borsh-construct-py icon indicating copy to clipboard operation
borsh-construct-py copied to clipboard

How to define U256 type?

Open WuTao18 opened this issue 3 years ago • 0 comments

In Rust, U256 can be defined as follows:

construct_uint! {
    #[derive(BorshDeserialize, BorshSerialize, Serialize, Deserialize)]
    pub struct U256(4);
}

How to define U256 in borsh-construct?

WuTao18 avatar Jan 09 '23 07:01 WuTao18