Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malik672 committed Nov 28, 2024
1 parent dc3b2cc commit 13656e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/addmod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![cfg_attr(target_arch = "wasm32", no_main)]

extern crate zink;
use zink::primitives::{numeric::Numeric, U256};
use zink::{primitives::{numeric::Numeric, U256}, Asm};

#[zink::external]
pub fn addmod_i32(a: i32, b: i32, n: i32) -> i32 {
Expand Down Expand Up @@ -79,9 +79,9 @@ fn test() -> anyhow::Result<()> {
//Test for U256
let info_u256 = contract.execute([
"addmod_U256(uint256,uint256,uint256)".as_bytes(),
3.bytes32(),
5.bytes32(),
7.bytes32(),
&3_i32.bytes32(),
&5_i32.bytes32(),
&7_i32.bytes32(),
])?;
assert_eq!(info_u256.ret, 1.bytes32());

Expand Down

0 comments on commit 13656e8

Please sign in to comment.