Skip to content

Commit bc59ee7

Browse files
authored
Fix call from eth_abi.decode_abi to eth_abi.decode (#8)
1 parent 105a729 commit bc59ee7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

offchain-computing/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM python:3.7-alpine3.10
22

33
### install needed python3 dependencies
4-
RUN apk add gcc musl-dev
5-
RUN pip3 install eth_abi
4+
RUN apk add --no-cache gcc musl-dev
5+
RUN pip3 install eth-abi==4.2.1
66

77
COPY ./src /app
88

offchain-computing/src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def save_result(result):
4343
file (deterministic-output-path).
4444
"""
4545
iexec_out = os.environ['IEXEC_OUT']
46-
callback_data = eth_abi.encode_abi(['string'], [result]).hex()
46+
callback_data = eth_abi.encode(['string'], [result]).hex()
4747
print('Callback is ready [data:{}, callback-data:{}]'.format(result, callback_data))
4848
# prepare callback to be sent to the smart-contract
4949
computed_file_content = {"callback-data": callback_data}

0 commit comments

Comments
 (0)