From 13007b7ecb833ed35dad699b7a61e4ab48846e5c Mon Sep 17 00:00:00 2001 From: rasputin2525 Date: Wed, 27 May 2026 23:30:27 +0100 Subject: [PATCH] Fix: README references nonexistent verify_result and execute_payout APIs --- .gitignore | 3 +++ README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 503f933..a0a6f74 100644 --- a/README.md +++ b/README.md @@ -129,10 +129,10 @@ is_funded(match_id) -> bool ``` submit_result(match_id, winner) -verify_result(match_id) -> bool -execute_payout(match_id) ``` +`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: