BREAKING, removed outconverting of payload in whisper messages

This commit is contained in:
Fabian Vogelsteller 2015-11-24 14:56:06 +01:00
parent 8c3492b656
commit 1f91f6ba77
6 changed files with 27 additions and 27 deletions

12
dist/web3-light.js vendored
View File

@ -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) {

File diff suppressed because one or more lines are too long

12
dist/web3.js vendored
View File

@ -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

File diff suppressed because one or more lines are too long

10
dist/web3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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) {