From fc5ae1b1b1d2d0a84a97eb5027e0ce2c8e15d37e Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Sun, 27 Aug 2023 00:26:17 +0200 Subject: [PATCH] add missing 'conditionType' field in examples. --- examples/tdec/simple_tdec_local.py | 1 + examples/tdec/simple_tdec_using_testnet.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/tdec/simple_tdec_local.py b/examples/tdec/simple_tdec_local.py index 4fcf667c4..6bc3c5087 100644 --- a/examples/tdec/simple_tdec_local.py +++ b/examples/tdec/simple_tdec_local.py @@ -13,6 +13,7 @@ ANYTHING_CAN_BE_PASSED_AS_RITUAL_ID = 55 before_the_beginning_of_time = { "version": ConditionLingo.VERSION, "condition": { + "conditionType": "time", "chain": 1, "method": "blocktime", "returnValueTest": {"comparator": "<", "value": 0}, diff --git a/examples/tdec/simple_tdec_using_testnet.py b/examples/tdec/simple_tdec_using_testnet.py index 91945b951..bbfd2a964 100644 --- a/examples/tdec/simple_tdec_using_testnet.py +++ b/examples/tdec/simple_tdec_using_testnet.py @@ -47,6 +47,7 @@ print( eth_balance_condition = { "version": ConditionLingo.VERSION, "condition": { + "conditionType": "rpc", "chain": 80001, "method": "eth_getBalance", "parameters": ["0x210eeAC07542F815ebB6FD6689637D8cA2689392", "latest"],