@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.
@@ -172,7 +172,7 @@ class SolanaBridgeClient {
172
172
  */
173
173
  async depositSpl(params) {
174
174
  const [contractStorage] = await this.findContractStoragePda();
175
- const [assetWhitelisted] = await this.findAssetConfigPda(params.mint);
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
- assetWhitelisted,
191
+ assetConfig,
192
192
  contractStorage,
193
193
  fromAccount: params.fromAccount,
194
194
  toAccount: params.toAccount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n1xyz/nord-ts",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Typescript for Nord",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 [assetWhitelisted] = await this.findAssetConfigPda(params.mint);
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
- assetWhitelisted,
220
+ assetConfig,
221
221
  contractStorage,
222
222
  fromAccount: params.fromAccount,
223
223
  toAccount: params.toAccount,