hedge-web3 0.1.39 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,7 @@ function getLinkedListAccounts(program, provider, vaultTypeAccountPublicKey, vau
|
|
70
70
|
oldSmallerPublicKey = vaults[indexBefore - 1].publicKey;
|
71
71
|
}
|
72
72
|
// Pretty print all the vaults before the operation
|
73
|
-
console.log('Sorted open vaults BEFORE at index:', indexBefore)
|
73
|
+
// console.log('Sorted open vaults BEFORE at index:', indexBefore)
|
74
74
|
let correctOrderBefore = true;
|
75
75
|
for (let i = 0; i < vaults.length; i++) {
|
76
76
|
if (i < vaults.length - 1) {
|
@@ -82,7 +82,7 @@ function getLinkedListAccounts(program, provider, vaultTypeAccountPublicKey, vau
|
|
82
82
|
}
|
83
83
|
}
|
84
84
|
if (correctOrderBefore) {
|
85
|
-
console.log(`Verfied the on-chain order of
|
85
|
+
console.log(`Verfied the on-chain order of vault type:`, vaultTypeAccount.collateralType);
|
86
86
|
}
|
87
87
|
else {
|
88
88
|
throw new Error("On-Chian vaults not in order!");
|
package/package.json
CHANGED
@@ -78,7 +78,7 @@ export async function getLinkedListAccounts(
|
|
78
78
|
}
|
79
79
|
|
80
80
|
// Pretty print all the vaults before the operation
|
81
|
-
console.log('Sorted open vaults BEFORE at index:', indexBefore)
|
81
|
+
// console.log('Sorted open vaults BEFORE at index:', indexBefore)
|
82
82
|
let correctOrderBefore = true
|
83
83
|
for (let i = 0; i < vaults.length; i++) {
|
84
84
|
if (i < vaults.length - 1) {
|
@@ -90,7 +90,7 @@ export async function getLinkedListAccounts(
|
|
90
90
|
}
|
91
91
|
}
|
92
92
|
if (correctOrderBefore){
|
93
|
-
console.log(`Verfied the on-chain order of
|
93
|
+
console.log(`Verfied the on-chain order of vault type:`, vaultTypeAccount.collateralType)
|
94
94
|
} else {
|
95
95
|
throw new Error("On-Chian vaults not in order!");
|
96
96
|
}
|