From a35b35d22efbeb4ed4173df141cecca9615841a2 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 24 Apr 2023 18:26:36 +0000 Subject: [PATCH] Making sure the sender address is oracle_address in fetchDynamicSwapPrice() --- tracktokens_smartcontracts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tracktokens_smartcontracts.py b/tracktokens_smartcontracts.py index fcad1b8..698346b 100755 --- a/tracktokens_smartcontracts.py +++ b/tracktokens_smartcontracts.py @@ -271,6 +271,7 @@ def fetchDynamicSwapPrice(contractStructure, transaction_data, blockinfo): # and receiver address should be contractAddress try: assert transaction_data['receiverAddress'] == contractStructure['contractAddress'] + assert transaction_data['senderAddress'] == oracle_address floData = json.loads(floData) # Check if the contract name and address are right assert floData['price-update']['contract-name'] == contractStructure['contractName']