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 7267e22 commit f701947
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/addmod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
#![cfg_attr(target_arch = "wasm32", no_main)]

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

#[zink::external]
pub fn addmod_i32(a: i32, b: i32, n: i32) -> i32 {
Expand Down Expand Up @@ -39,6 +36,8 @@ fn main() {}
#[test]
fn test() -> anyhow::Result<()> {
use zint::{Bytes32 as _, Contract};
use zink::primitives::Asm;

// Test for i32
let mut contract = Contract::search("addmod")?.compile()?;

Expand Down

0 comments on commit f701947

Please sign in to comment.