Skip to content

Commit

Permalink
Merge pull request #206 from valory-xyz/fix/transfer
Browse files Browse the repository at this point in the history
Fix/transfer
  • Loading branch information
dvilelaf authored Apr 4, 2024
2 parents b429488 + 774802b commit 6dfaedb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/customs/prepare_tx/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/valory/customs/prepare_tx/prepare_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6dfaedb

Please sign in to comment.