mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-27 22:54:56 +00:00
Extracting wallet address from mesage
This commit is contained in:
parent
26313bf241
commit
fe7446920c
@ -65,6 +65,7 @@ class MessageProcessor {
|
|||||||
const msg = this.web3.utils.toAscii(message.payload);
|
const msg = this.web3.utils.toAscii(message.payload);
|
||||||
let parsedObj = JSON.parse(msg);
|
let parsedObj = JSON.parse(msg);
|
||||||
obj.address = parsedObj.address;
|
obj.address = parsedObj.address;
|
||||||
|
obj.wallet = parsedObj.wallet;
|
||||||
obj.functionName = parsedObj.encodedFunctionCall.slice(0, 10);
|
obj.functionName = parsedObj.encodedFunctionCall.slice(0, 10);
|
||||||
obj.functionParameters = "0x" + parsedObj.encodedFunctionCall.slice(10);
|
obj.functionParameters = "0x" + parsedObj.encodedFunctionCall.slice(10);
|
||||||
obj.payload = parsedObj.encodedFunctionCall;
|
obj.payload = parsedObj.encodedFunctionCall;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user