mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
use defaultAccount instead of coinbase for default from value in transactions
This commit is contained in:
parent
9c5e329357
commit
9e3a07f793
@ -434,7 +434,7 @@ class Contract(object):
|
||||
|
||||
if self.address is not None:
|
||||
transact_transaction.setdefault('to', self.address)
|
||||
transact_transaction.setdefault('from', self.web3.eth.coinbase)
|
||||
transact_transaction.setdefault('from', self.web3.eth.defaultAccount)
|
||||
|
||||
if 'to' not in transact_transaction:
|
||||
if isinstance(self, type):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user