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
5 changes: 5 additions & 0 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -913,3 +913,8 @@
# Unexpected error: how to report issues
from = "/errors/13"
to = "/developers/docs/aztec-nr/debugging#reporting-issues"

[[redirects]]
# Aztec-nr: contract errors
from = "/errors/14"
to = "/developers/docs/aztec-nr/debugging#contract-errors"
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export class UtilityExecutionOracle implements IMiscOracle, IUtilityExecutionOra
if (!completeAddress) {
throw new Error(
`No public key registered for address ${account}.
Register it by calling pxe.addAccount(...).\nSee docs for context: https://docs.aztec.network/developers/resources/debugging/aztecnr-errors#simulation-error-no-public-key-registered-for-address-0x0-register-it-by-calling-pxeregisterrecipient-or-pxeregisteraccount`,
Register it by calling wallet.registerSender(...).\nSee docs for context: https://docs.aztec.network/errors/14`,
);
}
return completeAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class ContractStore {
const contract = await this.getContract(to);
if (!contract) {
throw new Error(
`Unknown contract ${to}: add it to PXE by calling server.addContracts(...).\nSee docs for context: https://docs.aztec.network/developers/resources/debugging/aztecnr-errors#unknown-contract-0x0-add-it-to-pxe-by-calling-serveraddcontracts`,
`Unknown contract ${to}: register it by calling wallet.registerContract(...).\nSee docs for context: https://docs.aztec.network/errors/14`,
);
}

Expand Down
Loading