Skip to content

Commit

Permalink
fix raw rpc error
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Jun 18, 2024
1 parent e8d0301 commit 098f889
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 164 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"websocket": "^1.0.35"
},
"devDependencies": {
"@conflux-dev/jsonrpc-spec": "^0.2.0",
"@babel/core": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@conflux-dev/jsdoc-tsimport-plugin": "^1.0.5",
"@conflux-dev/jsonrpc-spec": "^0.0.5",
"@geekberry/jsdoc-to-md": "0.0.8",
"@types/node": "^14.0.23",
"babel-plugin-lodash": "^3.3.4",
Expand Down
8 changes: 8 additions & 0 deletions src/rpc/types/rawFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ format.rawTransaction = format({
v: format.bigUIntHex,
status: format.bigUIntHex.$or(null),
transactionIndex: format.bigUIntHex.$or(null),
maxFeePerGas: format.bigUIntHex.$or(null),
maxPriorityFeePerGas: format.bigUIntHex.$or(null),
type: format.bigUIntHex.$or(null),
yParity: format.bigUIntHex.$or(null),

Check failure on line 34 in src/rpc/types/rawFormatter.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Extra space before value for key 'yParity'
}, {
name: 'format.rawTransaction',
}).$or(null);
Expand All @@ -39,6 +43,9 @@ format.rawReceipt = format({
gasUsed: format.bigUIntHex,
gasFee: format.bigUIntHex,
storageCollateralized: format.bigUIntHex,
type: format.bigUIntHex.$or(null),
effectiveGasPrice: format.bigUIntHex.$or(null),
burntGasFee: format.bigUIntHex.$or(null),
storageReleased: [{
collaterals: format.bigUIntHex,
}],
Expand All @@ -60,6 +67,7 @@ format.rawLogs = format([format.rawLog]);
format.rawBlock = format({
epochNumber: format.bigUIntHex.$or(null),
blockNumber: format.bigUIntHex.$or(null),
baseFeePerGas: format.bigUIntHex.$or(null),
blame: format.bigUIntHex,
height: format.bigUIntHex,
size: format.bigUIntHex,
Expand Down
Loading

0 comments on commit 098f889

Please sign in to comment.