Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion contracts/crowdfund/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mod errors;
#[cfg(test)]
mod test;
mod tests;

use errors::CrowdfundError;
use soroban_sdk::{
Expand All @@ -11,11 +11,13 @@ use soroban_sdk::{
};

#[contractclient(name = "InvoicePaymentClient")]
#[allow(dead_code)]
trait InvoicePayment {
fn pay_invoice(env: Env, payer: Address, invoice_id: u64);
}

#[contractclient(name = "MerchantAccountRefundClient")]
#[allow(dead_code)]
trait MerchantAccountRefund {
fn refund(env: Env, token: Address, amount: i128, to: Address);
}
Expand Down Expand Up @@ -92,6 +94,7 @@ pub struct PledgeCommentAddedEvent {
pub comment: String,
}

#[contractevent]
pub struct PledgeReceivedEvent {
pub contributor: Address,
pub amount: i128,
Expand Down
2 changes: 2 additions & 0 deletions contracts/crowdfund/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod test;
pub mod test_feature_194;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::*;
use crate::*;
use soroban_sdk::testutils::{Address as _, Ledger as _};
use soroban_sdk::token::StellarAssetClient;
use soroban_sdk::{vec, Address, Env};
Expand Down
Loading