Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions playground/src/components/home/components/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export function Landing() {
pxe,
currentTx,
isPXEInitialized,
isNetworkCongested,
network,
setWallet,
} = useContext(AztecContext);

Expand Down Expand Up @@ -380,7 +380,11 @@ export function Landing() {
});

const { prepareForFeePayment } = await import('../../../utils/sponsoredFPC');
const feePaymentMethod = await prepareForFeePayment(pxe);
const feePaymentMethod = await prepareForFeePayment(
pxe,
network.sponsoredFPC?.address,
network.sponsoredFPC?.version,
);

const deployMethod = await accountManager.getDeployMethod();
const opts = {
Expand Down
12 changes: 12 additions & 0 deletions playground/update-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
VERSION=$(cat ../.release-please-manifest.json | jq -r '."."')

echo "Adding latest artifact for version $VERSION"

mkdir -p src/assets/artifacts/$VERSION

cp \
../yarn-project/noir-contracts.js/artifacts/sponsored_fpc_contract-SponsoredFPC.json \
../yarn-project/noir-contracts.js/artifacts/sponsored_fpc_contract-SponsoredFPC.d.json.ts \
src/assets/artifacts/$VERSION

echo "Done"