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: 4 additions & 4 deletions spartan/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ function test_cmds {
# Note: commands that start with 'timeout ...' override the default timeout.
# TODO figure out why these take long sometimes.
echo "$hash timeout -v 20m ./spartan/bootstrap.sh test-kind-smoke"
# if [ "$CI_FULL" -eq 1 ]; then
if [ "$CI_FULL" -eq 1 ]; then
# echo "$hash timeout -v 20m ./spartan/bootstrap.sh test-kind-transfer"
# TODO(#12791) re-enable
# echo "$hash timeout -v 30m ./spartan/bootstrap.sh test-kind-4epochs"
# echo "$hash timeout -v 30m ./spartan/bootstrap.sh test-kind-upgrade-rollup-version"
# echo "$hash timeout -v 30m ./spartan/bootstrap.sh test-prod-deployment"
# echo "$hash timeout -v 30m ./spartan/bootstrap.sh test-cli-upgrade-with-lock"
# fi
echo "$hash timeout -v 30m ./spartan/bootstrap.sh test-cli-upgrade-with-lock"
fi

if [ "$CI_NIGHTLY" -eq 1 ]; then
echo "$hash timeout -v 50m ./spartan/bootstrap.sh test-kind-4epochs-sepolia"
Expand Down Expand Up @@ -155,7 +155,7 @@ case "$cmd" in
FRESH_INSTALL=false INSTALL_METRICS=false ./scripts/test_prod_deployment.sh
;;
"test-cli-upgrade-with-lock")
OVERRIDES="telemetry.enabled=false" \
OVERRIDES="telemetry.enabled=false,network.setupL2Contracts=false" \
FRESH_INSTALL=${FRESH_INSTALL:-true} INSTALL_METRICS=false \
./scripts/test_kind.sh src/spartan/upgrade_via_cli.test.ts 1-validators.yaml upgrade-via-cli${NAME_POSTFIX:-}
;;
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/l1/governance_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function depositGovernanceTokens({

const addresses = await RegistryContract.collectAddresses(publicClient, registryAddress, 'canonical');
const governanceAddress = addresses.governanceAddress.toString();
const tokenAddress = addresses.feeJuiceAddress.toString();
const tokenAddress = addresses.stakingAssetAddress.toString();

const feeJuice = new FeeJuiceContract(tokenAddress, publicClient, walletClient);
const governance = new GovernanceContract(governanceAddress, publicClient, walletClient);
Expand Down
14 changes: 12 additions & 2 deletions yarn-project/ethereum/src/contracts/fee_juice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,22 @@ export class FeeJuiceContract {
public async mint(to: Hex, amount: bigint) {
const walletFeeJuice = this.assertWalletFeeJuice();
const tx = await walletFeeJuice.write.mint([to, amount]);
await this.publicClient.waitForTransactionReceipt({ hash: tx });
const receipt = await this.publicClient.waitForTransactionReceipt({ hash: tx });

if (receipt.status === 'success') {
return;
}
throw new Error('Mint failed');
}

public async approve(spender: Hex, amount: bigint) {
const walletFeeJuice = this.assertWalletFeeJuice();
const tx = await walletFeeJuice.write.approve([spender, amount]);
await this.publicClient.waitForTransactionReceipt({ hash: tx });
const receipt = await this.publicClient.waitForTransactionReceipt({ hash: tx });

if (receipt.status === 'success') {
return;
}
throw new Error('Approve failed');
}
}
Loading