-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update StagingStatusUpdated.code event value to SHA3_256 hash
- Loading branch information
1 parent
0a0d1d8
commit 446aeb6
Showing
3 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
scripts/migration-contract-staging/get_staged_contract_code_hash.cdc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import "MigrationContractStaging" | ||
|
||
#interaction ( | ||
version: "1.1.0", | ||
title: "Get Staged Contract Code", | ||
description: "Returns the Cadence code that has been staged for the given contract or nil if it is not yet staged.", | ||
language: "en-US", | ||
) | ||
|
||
/// Returns the code hash as it is staged or nil if it not currently staged. | ||
/// | ||
access(all) fun main(contractAddress: Address, contractName: String): String? { | ||
return MigrationContractStaging.getStagedContractCodeHash(address: contractAddress, name: contractName) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters