mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-22 11:08:33 +00:00
BREAKING, removed outconverting of payload in whisper messages
This commit is contained in:
parent
8c3492b656
commit
1f91f6ba77
12
dist/web3-light.js
vendored
12
dist/web3-light.js
vendored
@ -3749,7 +3749,7 @@ var outputLogFormatter = function(log) {
|
||||
*/
|
||||
var inputPostFormatter = function(post) {
|
||||
|
||||
post.payload = utils.toHex(post.payload);
|
||||
// post.payload = utils.toHex(post.payload);
|
||||
post.ttl = utils.fromDecimal(post.ttl);
|
||||
post.workToProve = utils.fromDecimal(post.workToProve);
|
||||
post.priority = utils.fromDecimal(post.priority);
|
||||
@ -3780,12 +3780,12 @@ var outputPostFormatter = function(post){
|
||||
post.sent = utils.toDecimal(post.sent);
|
||||
post.ttl = utils.toDecimal(post.ttl);
|
||||
post.workProved = utils.toDecimal(post.workProved);
|
||||
post.payloadRaw = post.payload;
|
||||
post.payload = utils.toAscii(post.payload);
|
||||
// post.payloadRaw = post.payload;
|
||||
// post.payload = utils.toAscii(post.payload);
|
||||
|
||||
if (utils.isJson(post.payload)) {
|
||||
post.payload = JSON.parse(post.payload);
|
||||
}
|
||||
// if (utils.isJson(post.payload)) {
|
||||
// post.payload = JSON.parse(post.payload);
|
||||
// }
|
||||
|
||||
// format the following options
|
||||
if (!post.topics) {
|
||||
|
6
dist/web3-light.min.js
vendored
6
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
12
dist/web3.js
vendored
12
dist/web3.js
vendored
@ -3749,7 +3749,7 @@ var outputLogFormatter = function(log) {
|
||||
*/
|
||||
var inputPostFormatter = function(post) {
|
||||
|
||||
post.payload = utils.toHex(post.payload);
|
||||
// post.payload = utils.toHex(post.payload);
|
||||
post.ttl = utils.fromDecimal(post.ttl);
|
||||
post.workToProve = utils.fromDecimal(post.workToProve);
|
||||
post.priority = utils.fromDecimal(post.priority);
|
||||
@ -3780,12 +3780,12 @@ var outputPostFormatter = function(post){
|
||||
post.sent = utils.toDecimal(post.sent);
|
||||
post.ttl = utils.toDecimal(post.ttl);
|
||||
post.workProved = utils.toDecimal(post.workProved);
|
||||
post.payloadRaw = post.payload;
|
||||
post.payload = utils.toAscii(post.payload);
|
||||
// post.payloadRaw = post.payload;
|
||||
// post.payload = utils.toAscii(post.payload);
|
||||
|
||||
if (utils.isJson(post.payload)) {
|
||||
post.payload = JSON.parse(post.payload);
|
||||
}
|
||||
// if (utils.isJson(post.payload)) {
|
||||
// post.payload = JSON.parse(post.payload);
|
||||
// }
|
||||
|
||||
// format the following options
|
||||
if (!post.topics) {
|
||||
|
2
dist/web3.js.map
vendored
2
dist/web3.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/web3.min.js
vendored
10
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -209,7 +209,7 @@ var outputLogFormatter = function(log) {
|
||||
*/
|
||||
var inputPostFormatter = function(post) {
|
||||
|
||||
post.payload = utils.toHex(post.payload);
|
||||
// post.payload = utils.toHex(post.payload);
|
||||
post.ttl = utils.fromDecimal(post.ttl);
|
||||
post.workToProve = utils.fromDecimal(post.workToProve);
|
||||
post.priority = utils.fromDecimal(post.priority);
|
||||
@ -240,12 +240,12 @@ var outputPostFormatter = function(post){
|
||||
post.sent = utils.toDecimal(post.sent);
|
||||
post.ttl = utils.toDecimal(post.ttl);
|
||||
post.workProved = utils.toDecimal(post.workProved);
|
||||
post.payloadRaw = post.payload;
|
||||
post.payload = utils.toAscii(post.payload);
|
||||
// post.payloadRaw = post.payload;
|
||||
// post.payload = utils.toAscii(post.payload);
|
||||
|
||||
if (utils.isJson(post.payload)) {
|
||||
post.payload = JSON.parse(post.payload);
|
||||
}
|
||||
// if (utils.isJson(post.payload)) {
|
||||
// post.payload = JSON.parse(post.payload);
|
||||
// }
|
||||
|
||||
// format the following options
|
||||
if (!post.topics) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user