fix(admin): resolve incorrect crypto balance calculation fallback displaying fiat amount
This commit is contained in:
20
test_sweep_post.js
Normal file
20
test_sweep_post.js
Normal file
@@ -0,0 +1,20 @@
|
||||
export async function runTest() {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/api/crypto-sweep', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
txId: 'not-important-since-it-will-catch-in-db',
|
||||
network: 'SOLANA',
|
||||
token: 'SOL'
|
||||
})
|
||||
});
|
||||
|
||||
console.log("Status:", response.status);
|
||||
const data = await response.json();
|
||||
console.log("Data:", data);
|
||||
} catch(e) {
|
||||
console.error("Fetch Error:", e);
|
||||
}
|
||||
}
|
||||
runTest();
|
||||
Reference in New Issue
Block a user