@hawksightco/hawk-sdk 1.3.116 → 1.3.117
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/src/hsToMeteora.js +3 -3
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -1981,13 +1981,13 @@ class ClaimRewardAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
1981
1981
|
// Adjust by token type
|
|
1982
1982
|
const pdaTokenType = (_a = this.opt) === null || _a === void 0 ? void 0 : _a.pdaTokenType;
|
|
1983
1983
|
if (pdaTokenType === types_1.TokenType.LTA) {
|
|
1984
|
-
this.ix.keys[5].pubkey = util.generateLimitToken(this.userPda,
|
|
1984
|
+
this.ix.keys[5].pubkey = util.generateLimitToken(this.userPda, rewardMint);
|
|
1985
1985
|
}
|
|
1986
1986
|
else if (pdaTokenType === types_1.TokenType.STA) {
|
|
1987
|
-
this.ix.keys[5].pubkey = util.generateUserPdaStorageAccount(this.userPda,
|
|
1987
|
+
this.ix.keys[5].pubkey = util.generateUserPdaStorageAccount(this.userPda, rewardMint);
|
|
1988
1988
|
}
|
|
1989
1989
|
else {
|
|
1990
|
-
this.ix.keys[5].pubkey = util.generateAta(this.userPda,
|
|
1990
|
+
this.ix.keys[5].pubkey = util.generateAta(this.userPda, rewardMint, mintInfo.info.owner);
|
|
1991
1991
|
}
|
|
1992
1992
|
let binArrayLower = this.ix.keys[10].pubkey;
|
|
1993
1993
|
let binArrayUpper = this.ix.keys.length > 11 ? this.ix.keys[11].pubkey : this.ix.keys[10].pubkey;
|