diff --git a/.gitignore b/.gitignore index 2020858..018566c 100644 --- a/.gitignore +++ b/.gitignore @@ -26,5 +26,8 @@ Thumbs.db # Lock file (optional — remove if you want to commit it) # Cargo.lock +# Task files +task1.md + # Task files task1.md \ No newline at end of file diff --git a/README.md b/README.md index 4840ade..d713de0 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,8 @@ has_result(match_id) -> bool get_result(match_id) -> ResultEntry ``` +`submit_result` is called by the trusted oracle address. It verifies the caller, records the winner, and immediately executes the payout (or refund on draw) in a single transaction. There are no separate `verify_result` or `execute_payout` functions. + ## 🧪 Testing Comprehensive test suite covering: