Fix method decoding (#4845)
* Fix contract deployment method decoding in Signer * Linting
This commit is contained in:
parent
3478c16e10
commit
3bb66d03ee
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user