From d5cf8c94abc63fc81382ce0191de2223889cf459 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 1 Jun 2020 14:54:42 -0300 Subject: [PATCH] change `signature` key name to `methodSignature` There is something down there that mutates the `tx` object in the Review screen and was overwriting the `signature` key with the method's hash --- src/logic/contractInteraction/sources/ABIService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logic/contractInteraction/sources/ABIService.ts b/src/logic/contractInteraction/sources/ABIService.ts index 50d9f2fb..09ca6553 100644 --- a/src/logic/contractInteraction/sources/ABIService.ts +++ b/src/logic/contractInteraction/sources/ABIService.ts @@ -18,9 +18,9 @@ class ABIService { } static getMethodSignatureAndSignatureHash(method) { - const signature = ABIService.getMethodSignature(method) - const signatureHash = ABIService.getSignatureHash(signature) - return { signature, signatureHash } + const methodSignature = ABIService.getMethodSignature(method) + const signatureHash = ABIService.getSignatureHash(methodSignature) + return { methodSignature, signatureHash } } static getMethodSignature({ inputs, name }) {