You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use it the DependencyAudit contract has to be deployed to the service account, and the service account contract needs to be updated to include a call to the dependency audit contract: onflow/flow-core-contracts#430
--- a/deployed.txt+++ b/contracts/FlowServiceAccount.cdc@@ -2,6 +2,7 @@ import FungibleToken from 0xf233dcee88fe0abe
import FlowToken from 0x1654653399040a61
import FlowFees from 0xf919ee77447b7497
import FlowStorageFees from 0xe467b9dd11fa00df
+import DependencyAudit from 0xe467b9dd11fa00df
pub contract FlowServiceAccount {
@@ -191,6 +192,16 @@ pub contract FlowServiceAccount {
}
}
+ /// checkDependencies is called by the FVM at the end of the transaction execution+ /// The `dependenciesAddresses` and `dependenciesNames` are the addresses and names of all the contracts that the transaction depends on.+ /// The `authorizers` are the addresses of the accounts that authorized the transaction and the payer.+ /// The FVM can call this even though it is private.+ /// checkDependencies is not intended to be called by the user.+ access(self) fun checkDependencies(_ dependenciesAddresses: [Address], _ dependenciesNames: [String], _ authorizers: [Address]) {+ // forwad the call to the DependencyAudit, where the actual check is done.+ DependencyAudit.checkDependencies(dependenciesAddresses, dependenciesNames, authorizers)+ }+
init() {
self.transactionFee = 0.0
self.accountCreationFee = 0.0
The text was updated successfully, but these errors were encountered:
Overview
The dependency audit contract is responsible for emitting an event whenever there are any unstated dependencies (contracts) used in a transaction https://github.com/onflow/contract-updater/blob/main/contracts/DependencyAudit.cdc.
To use it the DependencyAudit contract has to be deployed to the service account, and the service account contract needs to be updated to include a call to the dependency audit contract: onflow/flow-core-contracts#430
1. Deploy DependencyAudit
This corresponds to the following addresses:
Note
These will be the addresses that are skipped when checking which dependencies are staged or not
2. Update FlowServiceAccount
The text was updated successfully, but these errors were encountered: