forked from QuickLendX/quicklendx-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix_test_file34.sh
More file actions
executable file
·11 lines (9 loc) · 984 Bytes
/
Copy pathfix_test_file34.sh
File metadata and controls
executable file
·11 lines (9 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
#!/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
# Now wait, the user's advice:
# Use env.mock_auths explicitly for calls.
# And for update_invoice_status... Oh wait! I had `client.update_invoice_status`. But I had NOT fixed the call site inside `call_update_invoice_status` to use the CORRECT mock auth invoke.