From beed1aa0cef62d476c7ec29e90a0110dc42a0690 Mon Sep 17 00:00:00 2001 From: qiushaoxi Date: Thu, 14 Nov 2019 13:41:43 +0800 Subject: [PATCH] Do not sort authorization --- README.md | 2 +- src/structs.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d55ee30..da680fb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![NPM](https://img.shields.io/npm/v/eosjs-classic.svg)](https://www.npmjs.org/package/eosjs-classic) -# Eosjs-classic +# eosjs-classic General purpose library for EOSIO blockchains. diff --git a/src/structs.js b/src/structs.js index 9a721e7..edca731 100644 --- a/src/structs.js +++ b/src/structs.js @@ -68,10 +68,10 @@ module.exports = (config = {}, extendedSchema) => { // Do not sort transaction actions config.sort = Object.assign({}, config.sort) - config.sort['action.authorization'] = true - config.sort['signed_transaction.signature'] = true - config.sort['authority.accounts'] = true - config.sort['authority.keys'] = true + config.sort['action.authorization'] = false + config.sort['signed_transaction.signature'] = false + config.sort['authority.accounts'] = false + config.sort['authority.keys'] = false const fullSchema = Object.assign({}, schema, extendedSchema) const {structs, types, errors, fromBuffer, toBuffer} = Fcbuffer(fullSchema, config)