Skip to content

Commit

Permalink
Fix Bytes type for export-abi
Browse files Browse the repository at this point in the history
  • Loading branch information
rory-ocl committed Aug 2, 2024
1 parent 17fc86a commit 0efa66a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stylus-sdk/src/abi/export/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
//! This module provides functions for code generated by `stylus-sdk-proc` for the `export-abi` command.
//! Most users shouldn't call these.

use alloy_primitives::{Address, FixedBytes, Signed, Uint};
use core::any::TypeId;

use alloy_primitives::{Address, FixedBytes, Signed, Uint};

use crate::abi::Bytes;

/// Represents a unique Solidity Type.
pub struct InnerType {
/// Full interface string.
Expand Down Expand Up @@ -58,7 +61,7 @@ macro_rules! impl_inner {
};
}

impl_inner!(bool u8 u16 u32 u64 u128 i8 i16 i32 i64 i128 String Address);
impl_inner!(bool u8 u16 u32 u64 u128 i8 i16 i32 i64 i128 String Address Bytes);

impl<const B: usize, const L: usize> InnerTypes for Uint<B, L> {}
impl<const B: usize, const L: usize> InnerTypes for Signed<B, L> {}
Expand Down

0 comments on commit 0efa66a

Please sign in to comment.