@n1xyz/nord-ts 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge/client.js +2 -2
- package/package.json +1 -1
- package/src/bridge/client.ts +2 -2
package/dist/bridge/client.js
CHANGED
|
@@ -172,7 +172,7 @@ class SolanaBridgeClient {
|
|
|
172
172
|
*/
|
|
173
173
|
async depositSpl(params) {
|
|
174
174
|
const [contractStorage] = await this.findContractStoragePda();
|
|
175
|
-
const [
|
|
175
|
+
const [assetConfig] = await this.findAssetConfigPda(params.mint);
|
|
176
176
|
// Get the last deposit index from contract storage
|
|
177
177
|
const contractStorageAccount = await this.program.account.contractStorage.fetch(contractStorage);
|
|
178
178
|
const lastDepositIndex = contractStorageAccount.lastDepositIndex.toNumber();
|
|
@@ -188,7 +188,7 @@ class SolanaBridgeClient {
|
|
|
188
188
|
const accounts = {
|
|
189
189
|
depositor: this.provider.wallet.publicKey,
|
|
190
190
|
deposit,
|
|
191
|
-
|
|
191
|
+
assetConfig,
|
|
192
192
|
contractStorage,
|
|
193
193
|
fromAccount: params.fromAccount,
|
|
194
194
|
toAccount: params.toAccount,
|
package/package.json
CHANGED
package/src/bridge/client.ts
CHANGED
|
@@ -195,7 +195,7 @@ export class SolanaBridgeClient {
|
|
|
195
195
|
*/
|
|
196
196
|
async depositSpl(params: DepositSplParams): Promise<string> {
|
|
197
197
|
const [contractStorage] = await this.findContractStoragePda();
|
|
198
|
-
const [
|
|
198
|
+
const [assetConfig] = await this.findAssetConfigPda(params.mint);
|
|
199
199
|
|
|
200
200
|
// Get the last deposit index from contract storage
|
|
201
201
|
const contractStorageAccount =
|
|
@@ -217,7 +217,7 @@ export class SolanaBridgeClient {
|
|
|
217
217
|
const accounts: any = {
|
|
218
218
|
depositor: this.provider.wallet.publicKey,
|
|
219
219
|
deposit,
|
|
220
|
-
|
|
220
|
+
assetConfig,
|
|
221
221
|
contractStorage,
|
|
222
222
|
fromAccount: params.fromAccount,
|
|
223
223
|
toAccount: params.toAccount,
|