@sentio/sdk 2.36.0-rc.2 → 2.36.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export function decodeFuelTransaction(gqlTransaction, provider) {
6
6
  const rawPayload = arrayify(gqlTransaction.rawPayload);
7
7
  const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0);
8
8
  const { gasPerByte, gasPriceFactor, maxInputs, gasCosts } = provider.getChain().consensusParameters;
9
- const blockNumber = gqlTransaction.status?.block?.header?.header;
9
+ const blockNumber = gqlTransaction.status?.block?.header?.height;
10
10
  return {
11
11
  ...assembleTransactionSummary({
12
12
  id: gqlTransaction.id,
@@ -27,7 +27,7 @@ export function decodeFuelTransactionWithAbi(gqlTransaction, abiMap, provider) {
27
27
  const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0);
28
28
  const receipts = gqlTransaction.receipts?.map(processGqlReceipt) || [];
29
29
  const { gasPerByte, gasPriceFactor, maxInputs, gasCosts } = provider.getChain().consensusParameters;
30
- const blockNumber = gqlTransaction.status?.block?.header?.header;
30
+ const blockNumber = gqlTransaction.status?.block?.header?.height;
31
31
  return {
32
32
  ...assembleTransactionSummary({
33
33
  id: gqlTransaction.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/sdk",
3
- "version": "2.36.0-rc.2",
3
+ "version": "2.36.0-rc.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -77,8 +77,8 @@
77
77
  "typedoc": "^0.25.7",
78
78
  "utility-types": "^3.11.0",
79
79
  "yaml": "^2.3.4",
80
- "@sentio/protos": "2.36.0-rc.2",
81
- "@sentio/runtime": "^2.36.0-rc.2"
80
+ "@sentio/protos": "2.36.0-rc.3",
81
+ "@sentio/runtime": "^2.36.0-rc.3"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "tsup": "npm:@sentio/tsup@^6.7.2"
@@ -26,7 +26,7 @@ export function decodeFuelTransaction(gqlTransaction: any, provider: Provider):
26
26
 
27
27
  const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0)
28
28
  const { gasPerByte, gasPriceFactor, maxInputs, gasCosts } = provider.getChain().consensusParameters
29
- const blockNumber = gqlTransaction.status?.block?.header?.header
29
+ const blockNumber = gqlTransaction.status?.block?.header?.height
30
30
  return {
31
31
  ...assembleTransactionSummary({
32
32
  id: gqlTransaction.id,
@@ -51,7 +51,7 @@ export function decodeFuelTransactionWithAbi(gqlTransaction: any, abiMap: AbiMap
51
51
  const receipts = gqlTransaction.receipts?.map(processGqlReceipt) || []
52
52
 
53
53
  const { gasPerByte, gasPriceFactor, maxInputs, gasCosts } = provider.getChain().consensusParameters
54
- const blockNumber = gqlTransaction.status?.block?.header?.header
54
+ const blockNumber = gqlTransaction.status?.block?.header?.height
55
55
 
56
56
  return {
57
57
  ...assembleTransactionSummary({