diff --git a/scripts/build-package.sh b/scripts/build-package.sh index b6030231..ed7fba50 100755 --- a/scripts/build-package.sh +++ b/scripts/build-package.sh @@ -29,12 +29,9 @@ cp -r dist/artifacts/* "${EXPORT_DIR}/dist/" cp -r target "${EXPORT_DIR}/" find "${EXPORT_DIR}/target" -name '*.bak' -delete -# Copy deployments.json if it exists -if [ -f "src/deployments.json" ]; then - cp src/deployments.json "${EXPORT_DIR}/" -else - echo "src/deployments.json not found, skipping" -fi +# deployments.json is intentionally NOT shipped: the recorded addresses were generated under a +# pre-5.0 address-derivation formula and are stale. Re-add only after regenerating via +# `yarn deploy` on a current network (and regenerate on every address-affecting @aztec/* bump). # Copy documentation cp README.md "${EXPORT_DIR}/" diff --git a/scripts/deploy.ts b/scripts/deploy.ts index eba9d9c5..1bee9ea7 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -3,15 +3,18 @@ import { Command, Option } from 'commander'; import { PublicKeys } from '@aztec/aztec.js/keys'; import { getContractInstanceFromInstantiationParams, + getContractClassFromArtifact, Contract, type InteractionFeeOptions, DeployOptions, } from '@aztec/aztec.js/contracts'; import { TxStatus } from '@aztec/aztec.js/tx'; +import { TX_ERROR_EXISTING_NULLIFIER } from '@aztec/stdlib/tx'; import { AztecAddress } from '@aztec/aztec.js/addresses'; import { Fr, GrumpkinScalar } from '@aztec/aztec.js/fields'; import { SponsoredFeePaymentMethod } from '@aztec/aztec.js/fee'; import { AccountManager, type Wallet } from '@aztec/aztec.js/wallet'; +import { NO_FROM } from '@aztec/aztec.js/account'; import { createAztecNodeClient, type AztecNode } from '@aztec/aztec.js/node'; import { createLogger } from '@aztec/foundation/log'; @@ -162,17 +165,9 @@ export async function createSponsoredFeeOptions(wallet: Wallet): Promise