Skip to content

Commit

Permalink
Fix wrap sac payload and type (#169)
Browse files Browse the repository at this point in the history
* fix: wrap sac payload and type

* chore: bump v0.12.2
  • Loading branch information
fazzatti authored Aug 7, 2024
1 parent 9709967 commit 3080e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stellar-plus",
"version": "0.12.1",
"version": "0.12.2",
"description": "beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/stellar-plus/asset/stellar-asset-contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SorobanTokenHandler } from 'stellar-plus/asset/soroban-token'
import { SorobanTokenHandlerConstructorArgs } from 'stellar-plus/asset/soroban-token/types'
import { SACConstructorArgs, SACHandler as SACHandlerType } from 'stellar-plus/asset/stellar-asset-contract/types'
import { AssetTypes } from 'stellar-plus/asset/types'
import { TransactionInvocation } from 'stellar-plus/core/types'
import { BaseInvocation } from 'stellar-plus/core/contract-engine/types'

export class SACHandler implements SACHandlerType {
public type: AssetTypes = AssetTypes.SAC
Expand Down Expand Up @@ -81,8 +81,8 @@ export class SACHandler implements SACHandlerType {
* @returns {Promise<void>}
*
*/
public async wrapAndDeploy(txInvocation: TransactionInvocation): Promise<void> {
public async wrapAndDeploy(args: BaseInvocation): Promise<void> {
const asset = new Asset(this.classicHandler.code, this.classicHandler.issuerPublicKey)
await this.sorobanTokenHandler.wrapAndDeployClassicAsset({ asset, ...txInvocation })
await this.sorobanTokenHandler.wrapAndDeployClassicAsset({ asset, ...args })
}
}

0 comments on commit 3080e89

Please sign in to comment.