Skip to content

Commit

Permalink
chore(primitives): make TxKind::into_to const (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Feb 27, 2025
1 parent 2531372 commit 5b29eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/primitives/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl TxKind {

/// Consumes the type and returns the address of the contract that will be called or will
/// receive the transfer.
pub fn into_to(self) -> Option<Address> {
pub const fn into_to(self) -> Option<Address> {
match self {
Self::Create => None,
Self::Call(to) => Some(to),
Expand Down

0 comments on commit 5b29eb7

Please sign in to comment.