From fc7408a1d5276799bd41a1aa376b131d350c7da1 Mon Sep 17 00:00:00 2001 From: gaetbout Date: Fri, 9 Aug 2024 15:03:50 +0200 Subject: [PATCH] fix u256 --- src/examples/v1/struct_with_u256.cairo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/v1/struct_with_u256.cairo b/src/examples/v1/struct_with_u256.cairo index 56770af..b1238ee 100644 --- a/src/examples/v1/struct_with_u256.cairo +++ b/src/examples/v1/struct_with_u256.cairo @@ -5,10 +5,10 @@ use off_chain_signature::interfaces::{IOffChainMessageHash, IStructHash, v1::Sta const STRUCT_WITH_U256_TYPE_HASH: felt252 = selector!( - "\"StructWithU256\"(\"some_felt252\":\"felt\",\"some_u256\":\"u256\")\"u256\"(\"low\":\"felt\",\"high\":\"felt\")" + "\"StructWithU256\"(\"some_felt252\":\"felt\",\"some_u256\":\"u256\")\"u256\"(\"low\":\"u128\",\"high\":\"u128\")" ); -const U256_TYPE_HASH: felt252 = selector!("\"u256\"(\"low\":\"felt\",\"high\":\"felt\")"); +const U256_TYPE_HASH: felt252 = selector!("\"u256\"(\"low\":\"u128\",\"high\":\"u128\")"); #[derive(Drop, Copy, Hash)] struct StructWithU256 {