Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Sep 20, 2022
1 parent 396c0c0 commit 4dd2f16
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions contracts/crowdfund/src/testutils.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#![cfg(any(test, feature = "testutils"))]

use crate::CrowdfundClient;
use ed25519_dalek::Keypair;
use soroban_auth::{Ed25519Signature, Identifier, Signature, SignaturePayload, SignaturePayloadV0};
use soroban_sdk::testutils::ed25519::Sign;
use soroban_sdk::{BigInt, BytesN, Env, IntoVal, RawVal, Symbol, Vec};

use soroban_sdk::{BytesN, Env};

pub fn register_test_contract(e: &Env, contract_id: &[u8; 32]) {
let contract_id = BytesN::from_array(e, contract_id);
e.register_contract(&contract_id, crate::Crowdfund {});
}

fn to_ed25519(e: &Env, kp: &Keypair) -> Identifier {
Identifier::Ed25519(kp.public.to_bytes().into_val(e))
}

pub struct Crowdfund {
env: Env,
contract_id: BytesN<32>,
Expand Down

0 comments on commit 4dd2f16

Please sign in to comment.