Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ mod test;

#[aztec]
pub contract NestedUtility {
use crate::pow_note::PowNote;
use aztec::macros::{functions::external, storage::storage};
use aztec::{
messages::message_delivery::MessageDelivery,
protocol::address::AztecAddress,
state_vars::{Owned, PrivateMutable},
};
use crate::pow_note::PowNote;

#[storage]
struct Storage<Context> {
Expand Down Expand Up @@ -53,10 +53,7 @@ pub contract NestedUtility {

/// Cross-contract version: calls pow_from_storage on the target contract.
#[external("utility")]
unconstrained fn delegate_pow_from_storage(
target: AztecAddress,
owner: AztecAddress,
) -> Field {
unconstrained fn delegate_pow_from_storage(target: AztecAddress, owner: AztecAddress) -> Field {
self.call(NestedUtility::at(target).pow_from_storage(owner))
}

Expand Down
Loading