diff --git a/package-lock.json b/package-lock.json index 45db62c6..2d4074e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@axelar-network/axelar-cgp-solidity": "6.3.1", - "@axelar-network/axelar-cgp-sui": "^0.5.0", + "@axelar-network/axelar-cgp-sui": "^0.6.0", "@axelar-network/axelar-gmp-sdk-solidity": "5.10.0", "@axelar-network/interchain-token-service": "1.2.4", "@cosmjs/cosmwasm-stargate": "^0.32.1", @@ -144,10 +144,9 @@ } }, "node_modules/@axelar-network/axelar-cgp-sui": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-sui/-/axelar-cgp-sui-0.5.0.tgz", - "integrity": "sha512-DgsClAAZ211nDNM/cjxDdrO5OGVZeMAKbaRPxnStU/Gsj66r0iw3xQf8xJudEAOWcNKRXgjVAGrP87MHOB34sg==", - "license": "MIT", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-sui/-/axelar-cgp-sui-0.6.0.tgz", + "integrity": "sha512-/BBCojmCPGbLvdRPl0QEsXg9KAZVrjsVJ5x1+XYb8B9CBt+chqJt9FLeuZmWdtT/5GF6OZvadoEzkEZyLOvTzg==", "dependencies": { "@cosmjs/cosmwasm-stargate": "^0.32.2", "@mysten/sui": "^1.3.0", diff --git a/package.json b/package.json index bdba82d5..9493c6e1 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/axelarnetwork/axelar-contract-deployments#readme", "dependencies": { "@axelar-network/axelar-cgp-solidity": "6.3.1", - "@axelar-network/axelar-cgp-sui": "^0.5.0", + "@axelar-network/axelar-cgp-sui": "^0.6.0", "@axelar-network/axelar-gmp-sdk-solidity": "5.10.0", "@axelar-network/interchain-token-service": "1.2.4", "@cosmjs/cosmwasm-stargate": "^0.32.1", diff --git a/sui/operators.js b/sui/operators.js index d6468e04..3f906e33 100644 --- a/sui/operators.js +++ b/sui/operators.js @@ -15,7 +15,7 @@ function operatorMoveCall(contractConfig, gasServiceConfig, operatorCapId, tx, m const operatorId = contractConfig.objects.Operators; const gasCollectorCapId = gasServiceConfig.objects.GasCollectorCap; - const [cap, loanedCap] = tx.moveCall({ + const [cap, borrowObj] = tx.moveCall({ target: `${contractConfig.address}::operators::loan_cap`, arguments: [tx.object(operatorId), tx.object(operatorCapId), tx.object(gasCollectorCapId)], typeArguments: [`${gasServiceConfig.address}::gas_service::GasCollectorCap`], @@ -25,7 +25,7 @@ function operatorMoveCall(contractConfig, gasServiceConfig, operatorCapId, tx, m tx.moveCall({ target: `${contractConfig.address}::operators::restore_cap`, - arguments: [tx.object(operatorId), tx.object(operatorCapId), tx.object(gasCollectorCapId), cap, loanedCap], + arguments: [tx.object(operatorId), tx.object(operatorCapId), cap, borrowObj], typeArguments: [`${gasServiceConfig.address}::gas_service::GasCollectorCap`], });