Skip to content

Commit

Permalink
pass msg.value to emit event
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Mar 8, 2024
1 parent fac4aa9 commit 833d09b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ contract YourContract {
}

// emit: keyword used to trigger an event
emit GreetingChange(msg.sender, _newGreeting, msg.value > 0, 0);
emit GreetingChange(msg.sender, _newGreeting, msg.value > 0, msg.value);
}

/**
Expand Down

0 comments on commit 833d09b

Please sign in to comment.