@acala-network/chopsticks 0.9.3 → 0.9.4-2

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.
@@ -131,11 +131,13 @@ export const name = 'runBlock';
131
131
  const extrinsics = block.extrinsics.map((extrinsic, idx)=>{
132
132
  const parsed = registry.createType('GenericExtrinsic', extrinsic);
133
133
  const resultEvent = events?.find(({ event, phase })=>event.section === 'system' && (event.method === 'ExtrinsicSuccess' || event.method === 'ExtrinsicFailed') && phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(idx));
134
+ const signer = parsed.signer.isEmpty ? null : parsed.signer.toHex();
134
135
  return {
135
136
  section: parsed.method.section,
136
137
  method: parsed.method.method,
137
138
  args: parsed.method.args.map((arg)=>arg.toJSON()),
138
- success: resultEvent?.event.method === 'ExtrinsicSuccess'
139
+ success: resultEvent?.event.method === 'ExtrinsicSuccess',
140
+ signer
139
141
  };
140
142
  });
141
143
  resp.blockDetails = {
@@ -123,6 +123,7 @@ export interface RunBlockResponse {
123
123
  method: string;
124
124
  args: any[];
125
125
  success: boolean;
126
+ signer: string | null;
126
127
  }[];
127
128
  };
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "0.9.3",
3
+ "version": "0.9.4-2",
4
4
  "author": "Acala Developers <hello@acala.network>",
5
5
  "license": "Apache-2.0",
6
6
  "bin": "./chopsticks.cjs",
@@ -14,8 +14,8 @@
14
14
  "docs:prep": "typedoc"
15
15
  },
16
16
  "dependencies": {
17
- "@acala-network/chopsticks-core": "0.9.3",
18
- "@acala-network/chopsticks-db": "0.9.3",
17
+ "@acala-network/chopsticks-core": "0.9.4-2",
18
+ "@acala-network/chopsticks-db": "0.9.4-2",
19
19
  "@pnpm/npm-conf": "^2.2.2",
20
20
  "@polkadot/api-augment": "^10.10.1",
21
21
  "@polkadot/types": "^10.10.1",