diff --git a/packages/packages.json b/packages/packages.json index e118d2f7..f927d99c 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -15,7 +15,7 @@ "custom/napthaai/resolve_market_reasoning/0.1.0": "bafybeigutlttyivlf6yxdeesclv3dwxq6h7yj3varq63b6ujno3q6ytoje", "custom/napthaai/prediction_request_rag/0.1.0": "bafybeibp3hfeywllhmepvqyah763go4i5vtvo4wwihy6h4x7sylsjm5cam", "custom/napthaai/prediction_request_reasoning/0.1.0": "bafybeihrq7vvup2jztclucyrveb3nlgeb2pe5afgrxglgb7ji6b5jv5vtm", - "custom/valory/prepare_tx/0.1.0": "bafybeiei7yw5ptajoot6u5ggfyc3tcoyaivwufyeeeod265jpceoqttbfi", + "custom/valory/prepare_tx/0.1.0": "bafybeibrgiizisiiix5ct3xaxn2td6wc4jqaxuxsuybt2k4ljqbqufxdq4", "protocol/valory/acn_data_share/0.1.0": "bafybeih5ydonnvrwvy2ygfqgfabkr47s4yw3uqxztmwyfprulwfsoe7ipq", "protocol/valory/websocket_client/0.1.0": "bafybeih43mnztdv3v2hetr2k3gezg7d3yj4ur7cxdvcyaqhg65e52s5sf4", "contract/valory/agent_mech/0.1.0": "bafybeidsau5x2vjofpcdzxkg7airwkrdag65ohtxcby2ut27tfjizgnrnm", diff --git a/packages/valory/customs/prepare_tx/component.yaml b/packages/valory/customs/prepare_tx/component.yaml index ad5aa952..ad615d5f 100644 --- a/packages/valory/customs/prepare_tx/component.yaml +++ b/packages/valory/customs/prepare_tx/component.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeieynbsr6aijx2totfi5iw6thjwgzko526zcs5plgvgrq2lufso2sy - prepare_tx.py: bafybeiho5rrlhdhzdttm2bysqfexeuh2jlt4xkbdd37yc4yfjc2ayio2me + prepare_tx.py: bafybeiecb6ebj4ael2rnott2xy3eax3fayhnoo75463yyhqcel7ubdu5le fingerprint_ignore_patterns: [] entry_point: prepare_tx.py callable: run diff --git a/packages/valory/customs/prepare_tx/prepare_tx.py b/packages/valory/customs/prepare_tx/prepare_tx.py index 36663e9d..0f2dc960 100644 --- a/packages/valory/customs/prepare_tx/prepare_tx.py +++ b/packages/valory/customs/prepare_tx/prepare_tx.py @@ -43,7 +43,7 @@ only respond with the format below using curly brackets to encapsulate the variables within a json dictionary object and no other text: -"to": recipient_address, +"to_address": recipient_address, "value": value, "wei_value": wei_value @@ -114,7 +114,7 @@ def native_transfer( # build the transaction object, unknowns are referenced from parsed_txs transaction = { - "to": str(parsed_txs["to"]), + "to_address": str(parsed_txs["to_address"]), "value": int(parsed_txs["wei_value"]), } return response, prompt, transaction, None