Fix method decoding (#3967)
* Fix method decoding * Restore master version
This commit is contained in:
parent
2bbefcd438
commit
72c65d9c2f
@ -118,15 +118,6 @@ export default class MethodDecodingStore {
|
|||||||
return Promise.resolve(result);
|
return Promise.resolve(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { signature, paramdata } = this.api.util.decodeCallData(input);
|
|
||||||
result.signature = signature;
|
|
||||||
result.params = paramdata;
|
|
||||||
|
|
||||||
// Contract deployment
|
|
||||||
if (!signature || signature === CONTRACT_CREATE || transaction.creates) {
|
|
||||||
return Promise.resolve({ ...result, deploy: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
return this
|
return this
|
||||||
.isContract(contractAddress || transaction.creates)
|
.isContract(contractAddress || transaction.creates)
|
||||||
.then((isContract) => {
|
.then((isContract) => {
|
||||||
@ -136,6 +127,15 @@ export default class MethodDecodingStore {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { signature, paramdata } = this.api.util.decodeCallData(input);
|
||||||
|
result.signature = signature;
|
||||||
|
result.params = paramdata;
|
||||||
|
|
||||||
|
// Contract deployment
|
||||||
|
if (!signature || signature === CONTRACT_CREATE || transaction.creates) {
|
||||||
|
return Promise.resolve({ ...result, deploy: true });
|
||||||
|
}
|
||||||
|
|
||||||
return this
|
return this
|
||||||
.fetchMethodAbi(signature)
|
.fetchMethodAbi(signature)
|
||||||
.then((abi) => {
|
.then((abi) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user