Skip to content

Commit

Permalink
Fix hardcoded gas token address
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Mar 10, 2024
1 parent e686552 commit 50e1636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ contract AppSubscription {

global SUBSCRIPTION_DURATION_IN_BLOCKS = 5;
global SUBSCRIPTION_TXS = 5;
global CANONICAL_GAS_TOKEN_ADDRESS = AztecAddress::from_field(0x22a29a9544c0cbdbc35bb21caa78b6f08903be4b390a65319e33afd7443f3499);
// TODO(palla/purge-old-contract-deploy): Unhardcode this or add a unit test that checks when this changes so no one else loses hours debugging
global CANONICAL_GAS_TOKEN_ADDRESS = AztecAddress::from_field(0x256a0a818c8631dac7fbeb0534a0da522418b8ef3ef171533bf0b8e9b9ded5f3);

#[aztec(private)]
fn entrypoint(payload: pub DAppPayload, user_address: pub AztecAddress) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ contract FPC {
gas_token_address: SharedImmutable<AztecAddress>,
}

global CANONICAL_GAS_TOKEN_ADDRESS = AztecAddress::from_field(0x22a29a9544c0cbdbc35bb21caa78b6f08903be4b390a65319e33afd7443f3499);
// TODO(palla/purge-old-contract-deploy): Unhardcode this or add a unit test that checks when this changes so no one else loses hours debugging this.
global CANONICAL_GAS_TOKEN_ADDRESS = AztecAddress::from_field(0x256a0a818c8631dac7fbeb0534a0da522418b8ef3ef171533bf0b8e9b9ded5f3);

#[aztec(public)]
#[aztec(initializer)]
Expand Down

0 comments on commit 50e1636

Please sign in to comment.