Fix method decoding (#4845)

* Fix contract deployment method decoding in Signer

* Linting
This commit is contained in:
Nicolas Gotchac 2017-03-09 19:56:10 +01:00 committed by Jaco Greeff
parent 3478c16e10
commit 3bb66d03ee

View File

@ -138,6 +138,10 @@ export default class MethodDecodingStore {
return Promise.resolve(result);
}
if (!transaction.to) {
return this.decodeContractCreation(result);
}
let signature;
try {
@ -206,7 +210,7 @@ export default class MethodDecodingStore {
});
}
decodeContractCreation (data, contractAddress) {
decodeContractCreation (data, contractAddress = '') {
const result = {
...data,
contract: true,