Skip to content

Commit

Permalink
fix u256
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Aug 9, 2024
1 parent 0b3429d commit fc7408a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examples/v1/struct_with_u256.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fc7408a

Please sign in to comment.