We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
eth_abi.decode_abi
eth_abi.decode
1 parent 105a729 commit bc59ee7Copy full SHA for bc59ee7
2 files changed
offchain-computing/Dockerfile
@@ -1,8 +1,8 @@
1
FROM python:3.7-alpine3.10
2
3
### install needed python3 dependencies
4
-RUN apk add gcc musl-dev
5
-RUN pip3 install eth_abi
+RUN apk add --no-cache gcc musl-dev
+RUN pip3 install eth-abi==4.2.1
6
7
COPY ./src /app
8
offchain-computing/src/app.py
@@ -43,7 +43,7 @@ def save_result(result):
43
file (deterministic-output-path).
44
"""
45
iexec_out = os.environ['IEXEC_OUT']
46
- callback_data = eth_abi.encode_abi(['string'], [result]).hex()
+ callback_data = eth_abi.encode(['string'], [result]).hex()
47
print('Callback is ready [data:{}, callback-data:{}]'.format(result, callback_data))
48
# prepare callback to be sent to the smart-contract
49
computed_file_content = {"callback-data": callback_data}
0 commit comments