Skip to content

Commit

Permalink
minor error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
successor1 committed Nov 29, 2021
1 parent 7515a0c commit 5395453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@ def button_clicked(self):
fee,
xmss_pk,
src_xmss,
ots_key)
ots_key,
qrl_network[0])
QMessageBox.about(self, "Succesful transaction", "Sent!")

def update(self):
Expand Down
4 changes: 2 additions & 2 deletions models/TransferTransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def base64tohex(data):
return hexlify(a2b_base64(data))

CONNECTION_TIMEOUT = 5
def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key):
def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key, network):
# Create transaction
master_addr = None
bytes_addrs_to = []
Expand Down Expand Up @@ -81,7 +81,7 @@ def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key

# Push transaction
print("Sending to a QRL Node...")
node_public_address = main.qrl_network[0] + '-1.automated.theqrl.org:19009'
node_public_address = network + '-1.automated.theqrl.org:19009'
channel = grpc.insecure_channel(node_public_address)
stub = qrl_pb2_grpc.PublicAPIStub(channel)
push_transaction_req = qrl_pb2.PushTransactionReq(transaction_signed=tx.pbdata)
Expand Down

0 comments on commit 5395453

Please sign in to comment.