@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.
- package/dist/cjs/plugins/run-block/__snapshots__/index.test.ts.snap +2995 -2629
- package/dist/cjs/plugins/run-block/rpc.js +3 -1
- package/dist/esm/plugins/run-block/__snapshots__/index.test.ts.snap +2995 -2629
- package/dist/esm/plugins/run-block/rpc.js +3 -1
- package/dist/types/plugins/run-block/rpc.d.ts +1 -0
- package/package.json +3 -3
|
@@ -142,11 +142,13 @@ const rpc = async ({ chain }, [params])=>{
|
|
|
142
142
|
const extrinsics = block.extrinsics.map((extrinsic, idx)=>{
|
|
143
143
|
const parsed = registry.createType('GenericExtrinsic', extrinsic);
|
|
144
144
|
const resultEvent = events?.find(({ event, phase })=>event.section === 'system' && (event.method === 'ExtrinsicSuccess' || event.method === 'ExtrinsicFailed') && phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(idx));
|
|
145
|
+
const signer = parsed.signer.isEmpty ? null : parsed.signer.toHex();
|
|
145
146
|
return {
|
|
146
147
|
section: parsed.method.section,
|
|
147
148
|
method: parsed.method.method,
|
|
148
149
|
args: parsed.method.args.map((arg)=>arg.toJSON()),
|
|
149
|
-
success: resultEvent?.event.method === 'ExtrinsicSuccess'
|
|
150
|
+
success: resultEvent?.event.method === 'ExtrinsicSuccess',
|
|
151
|
+
signer
|
|
150
152
|
};
|
|
151
153
|
});
|
|
152
154
|
resp.blockDetails = {
|