Skip to content

Commit ff60d66

Browse files
committed
Update proto encoding
1 parent d3f6c52 commit ff60d66

File tree

9 files changed

+92
-86
lines changed

9 files changed

+92
-86
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gnolang/tm2-js-client",
3-
"version": "1.2.7",
3+
"version": "1.3.0",
44
"description": "Tendermint2 JS / TS Client",
55
"main": "./bin/index.js",
66
"repository": {

scripts/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ for x in ${FILES}; do
1212
--plugin="./node_modules/.bin/protoc-gen-ts_proto" \
1313
--ts_proto_out="${OUT_DIR}" \
1414
--proto_path="${PROTO_PATH}" \
15-
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages,useDate=false,snakeToCamel=true,emitDefaultValues=json-methods" \
15+
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages,useDate=false,snakeToCamel=false,emitDefaultValues=json-methods" \
1616
${x}
1717
done

src/proto/google/protobuf/any.ts

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/proto/tm2/abci.ts

Lines changed: 35 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/proto/tm2/tx.ts

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/provider/jsonrpc/jsonrpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class JSONRPCProvider implements Provider {
6363

6464
const simulateResult = extractSimulateFromResponse(abciResponse);
6565

66-
return simulateResult.gasUsed.toInt();
66+
return simulateResult.gas_used.toInt();
6767
}
6868

6969
async getBalance(

0 commit comments

Comments
 (0)