-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix TxViewer when no to
(contract deployment)
#4847
Conversation
@@ -256,23 +259,29 @@ export class LocalTransaction extends BaseTransaction { | |||
|
|||
const newTransaction = { | |||
from: transaction.from, | |||
to: transaction.to, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't seem to be right. What if the transaction actually has valid to
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, just noticed that we're adding it later on. I don't understand how does it fix the problem though. Previously transaction.to
was set to 0x
so we will set it anyway, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's added after :) (L283)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the issue was that the to
field was set, and thus formatted to hex
: '' => '0x'
.
I guess the API should be modified in order to take this empty to
case into account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap. Current fix does the trick, i.e. not encoding it.
* Added React Hot Reload to dapps + TokenDeplpoy fix * Fixes to the LocalTx dapp * Don't send the nonce for mined transactions * Don't encode empty to values for options
* Added React Hot Reload to dapps + TokenDeplpoy fix (#4846) * Fix method decoding (#4845) * Fix contract deployment method decoding in Signer * Linting * Fix TxViewer when no `to` (contract deployment) (#4847) * Added React Hot Reload to dapps + TokenDeplpoy fix * Fixes to the LocalTx dapp * Don't send the nonce for mined transactions * Don't encode empty to values for options * Pull steps from actual available steps (#4848) * Wait for the value to have changed in the input (#4844) * Backport Regsirty changes from #4589 * Test fixes for #4589
Fixes #4799