Extracting wallet address from mesage

This commit is contained in:
Richard Ramos 2018-08-13 11:11:55 -04:00
parent 26313bf241
commit fe7446920c

View File

@ -65,6 +65,7 @@ class MessageProcessor {
const msg = this.web3.utils.toAscii(message.payload);
let parsedObj = JSON.parse(msg);
obj.address = parsedObj.address;
obj.wallet = parsedObj.wallet;
obj.functionName = parsedObj.encodedFunctionCall.slice(0, 10);
obj.functionParameters = "0x" + parsedObj.encodedFunctionCall.slice(10);
obj.payload = parsedObj.encodedFunctionCall;