diff --git a/playground/src/components/home/components/Landing.tsx b/playground/src/components/home/components/Landing.tsx index d3118ec524a3..02e4d01eb625 100644 --- a/playground/src/components/home/components/Landing.tsx +++ b/playground/src/components/home/components/Landing.tsx @@ -267,7 +267,7 @@ export function Landing() { pxe, currentTx, isPXEInitialized, - isNetworkCongested, + network, setWallet, } = useContext(AztecContext); @@ -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 = { diff --git a/playground/update-artifacts.sh b/playground/update-artifacts.sh new file mode 100755 index 000000000000..f80b41e2a80a --- /dev/null +++ b/playground/update-artifacts.sh @@ -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"