Skip to content

Commit

Permalink
fixing doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Oct 22, 2023
1 parent 93826d4 commit 594a71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fuels-core/src/codec/abi_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl ABIDecoder {
///
/// let decoder = ABIDecoder::default();
///
/// let token = decoder.decode(&ParamType::U8, &[0, 0, 0, 0, 0, 0, 0, 7]).unwrap();
/// let token = decoder.decode(&ParamType::U8, &[7]).unwrap();
///
/// assert_eq!(u8::from_token(token).unwrap(), 7u8);
/// ```
Expand All @@ -73,7 +73,7 @@ impl ABIDecoder {
/// use fuels_core::types::Token;
///
/// let decoder = ABIDecoder::default();
/// let data: &[u8] = &[0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 8];
/// let data: &[u8] = &[7, 8];
///
/// let tokens = decoder.decode_multiple(&[ParamType::U8, ParamType::U8], &data).unwrap();
///
Expand Down

0 comments on commit 594a71e

Please sign in to comment.