Skip to content

Commit

Permalink
chore: use constant for 0x2
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Jul 31, 2024
1 parent 4f41195 commit fe2be1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sui/deploy-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function upgradePackage(client, keypair, packageToUpgrade, contractConfig,

const packageId = (result.objectChanges?.filter((a) => a.type === 'published') ?? [])[0].packageId;
contractConfig.address = packageId;
const [upgradeCap] = getObjectIdsByObjectTypes(result, ['0x2::package::UpgradeCap']);
const [upgradeCap] = getObjectIdsByObjectTypes(result, [`${suiPackageAddress}::package::UpgradeCap`]);
contractConfig.objects.UpgradeCap = upgradeCap;

printInfo('Transaction Digest', JSON.stringify(result.digest, null, 2));
Expand Down

0 comments on commit fe2be1a

Please sign in to comment.