Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix method decoding #4845

Merged
merged 2 commits into from
Mar 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion js/src/ui/MethodDecoding/methodDecodingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ export default class MethodDecodingStore {
return Promise.resolve(result);
}

if (!transaction.to) {
return this.decodeContractCreation(result);
}

let signature;

try {
Expand Down Expand Up @@ -206,7 +210,7 @@ export default class MethodDecodingStore {
});
}

decodeContractCreation (data, contractAddress) {
decodeContractCreation (data, contractAddress = '') {
const result = {
...data,
contract: true,
Expand Down