Skip to content

Commit

Permalink
fix signature events (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
magecnion authored Jul 2, 2024
1 parent 7bf1a17 commit f54e143
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ pub const SELECTOR_LOG_MINTED_WITH_EXTERNAL_TOKEN_URI: [u8; 32] =
pub const SELECTOR_LOG_EVOLVED_WITH_EXTERNAL_TOKEN_URI: [u8; 32] =
keccak256!("EvolvedWithExternalURI(uint256,string)");

/// Solidity selector of the EnabledPublicMinting log, which is the Keccak of the Log signature.
pub const SELECTOR_LOG_ENABLED_PUBLIC_MINTING: [u8; 32] = keccak256!("EnabledPublicMinting()");
/// Solidity selector of the DisabledPublicMinting log, which is the Keccak of the Log signature.
pub const SELECTOR_LOG_DISABLED_PUBLIC_MINTING: [u8; 32] = keccak256!("DisabledPublicMinting()");
/// Solidity selector of the PublicMintingEnabled log, which is the Keccak of the Log signature.
pub const SELECTOR_LOG_PUBLIC_MINTING_ENABLED: [u8; 32] = keccak256!("PublicMintingEnabled()");
/// Solidity selector of the PublicMintingDisabled log, which is the Keccak of the Log signature.
pub const SELECTOR_LOG_PUBLIC_MINTING_DISABLED: [u8; 32] = keccak256!("PublicMintingDisabled()");

/// Solidity selector of the `OwnershipTransferred` log, which is the Keccak of the Log signature.
pub const SELECTOR_LOG_OWNERSHIP_TRANSFERRED: [u8; 32] =
Expand Down Expand Up @@ -213,7 +213,7 @@ where
Ok(()) => {
log1(
handle.context().address,
SELECTOR_LOG_ENABLED_PUBLIC_MINTING,
SELECTOR_LOG_PUBLIC_MINTING_ENABLED,
solidity::encode_event_data(()),
)
.record(handle)?;
Expand All @@ -238,7 +238,7 @@ where
Ok(()) => {
log1(
handle.context().address,
SELECTOR_LOG_DISABLED_PUBLIC_MINTING,
SELECTOR_LOG_PUBLIC_MINTING_DISABLED,
solidity::encode_event_data(()),
)
.record(handle)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ fn enable_public_minting_generates_log() {
let collection_address = create_collection(alice);
precompiles()
.prepare_test(alice, collection_address, PrecompileCall::enable_public_minting {})
.expect_log(log1(collection_address, SELECTOR_LOG_ENABLED_PUBLIC_MINTING, vec![]))
.expect_log(log1(collection_address, SELECTOR_LOG_PUBLIC_MINTING_ENABLED, vec![]))
.execute_some();

precompiles()
Expand Down Expand Up @@ -340,7 +340,7 @@ fn disable_public_minting_generates_log() {
let collection_address = create_collection(alice);
precompiles()
.prepare_test(alice, collection_address, PrecompileCall::disable_public_minting {})
.expect_log(log1(collection_address, SELECTOR_LOG_DISABLED_PUBLIC_MINTING, vec![]))
.expect_log(log1(collection_address, SELECTOR_LOG_PUBLIC_MINTING_DISABLED, vec![]))
.execute_some();

precompiles()
Expand Down

0 comments on commit f54e143

Please sign in to comment.