commit fcb098d66ebc64b65c6d5990326180ae2d29531f
parent 8bba6349f55bb75f0f1177a6dbfdbd4277f1168e
Author: lash <dev@holbrook.no>
Date: Fri, 3 Feb 2023 08:59:27 +0000
Contract creation when recipient is omitted
Diffstat:
4 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/chainlib/eth/runnable/gas.py b/chainlib/eth/runnable/gas.py
@@ -144,7 +144,7 @@ def main():
(tx_hash_hex, o) = g.create(
settings.get('SENDER_ADDRESS'),
- settings.get('RECIPIENT'),
+ recipient,
settings.get('VALUE'),
data=settings.get('DATA'),
id_generator=settings.get('RPC_ID_GENERATOR'),
diff --git a/chainlib/eth/settings.py b/chainlib/eth/settings.py
@@ -25,6 +25,7 @@ def process_settings_rpc(settings, config):
settings.set('CONN', conn)
settings.set('RPC_ID_GENERATOR', rpc.id_generator)
settings.set('RPC_SEND', config.true('_RPC_SEND'))
+ settings.set('WAIT', config.true('_WAIT'))
gas_oracle = rpc.get_gas_oracle()
settings.set('GAS_ORACLE', gas_oracle)
diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py
@@ -637,9 +637,9 @@ class Tx(BaseTx, Src):
self.outputs = [to_checksum(address_from)]
to = self.src['to']
- if to == None:
- to = ZERO_ADDRESS
- self.inputs = [to_checksum(strip_0x(to))]
+ if to != None:
+ to = to_checksum(strip_0x(to))
+ self.inputs = [to]
self.payload = self.normal(self.src['input'], SrcItem.PAYLOAD)
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
-version = 0.4.8
+version = 0.4.9
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no