diff --git a/abigen/src/field.rs b/abigen/src/field.rs index 02c224f..e890105 100644 --- a/abigen/src/field.rs +++ b/abigen/src/field.rs @@ -85,7 +85,7 @@ mod tests { ("float128", quote! { Float128 }, quote! {}), ("time_point", quote! { TimePoint }, quote! {}), ("time_point_sec", quote! { TimePointSec }, quote! {}), - ("block_timestamp_type", quote! { BlockTimeStampType }, quote! {}), + ("block_timestamp_type", quote! { BlockTimestampType }, quote! {}), ("name", quote! { Name }, quote! {}), ("&[u8]", quote! { Bytes }, quote! {}), ("string", quote! { String }, quote! {}), diff --git a/abigen/src/rust.rs b/abigen/src/rust.rs index fe012b4..067525a 100644 --- a/abigen/src/rust.rs +++ b/abigen/src/rust.rs @@ -20,7 +20,7 @@ pub fn abi_type_to_rust_type(tp: &str) -> Option<&str> { "float128" => "Float128", "time_point" => "TimePoint", "time_point_sec" => "TimePointSec", - "block_timestamp_type" => "BlockTimeStampType", + "block_timestamp_type" => "BlockTimestampType", "name" => "Name", "&[u8]" => "Bytes", "string" => "String",