forked from QuickLendX/quicklendx-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix_test_file26.sh
More file actions
executable file
·12 lines (10 loc) · 1.01 KB
/
Copy pathfix_test_file26.sh
File metadata and controls
executable file
·12 lines (10 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
git restore quicklendx-contracts/src/test_platform_metrics_reconciliation.rs
sed -i 's/fn setup(env: &Env) -> (QuickLendXContractClient<'"'"'_>, Address, Address) {/fn setup(env: \&Env) -> (QuickLendXContractClient<'"'"'_>, Address, Address, Address) {/g' quicklendx-contracts/src/test_platform_metrics_reconciliation.rs
sed -i 's/(client, admin, business)/(client, contract_id, admin, business)/g' quicklendx-contracts/src/test_platform_metrics_reconciliation.rs
sed -i 's/std::vec::Vec::new()/alloc::vec::Vec::new()/g' quicklendx-contracts/src/test_platform_metrics_reconciliation.rs
sed -i 's/soroban_sdk::alloc::format!/alloc::format!/g' quicklendx-contracts/src/test_platform_metrics_reconciliation.rs
# Let's fix the fact that "update_invoice_status" might not like us passing the same invoice status again.
# Wait, actually, the error is OperationNotAllowed (1402).
# And mark_invoice_defaulted can return OperationNotAllowed if grace period hasn't expired!
# Let's check `ensure_default_transition_open` logic.