Skip to content
Snippets Groups Projects
Commit 3bb66d03 authored by Nicolas Gotchac's avatar Nicolas Gotchac Committed by Jaco Greeff
Browse files

Fix method decoding (#4845)

* Fix contract deployment method decoding in Signer

* Linting
parent 3478c16e
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment