Make Extrinsic compatible with Method (#335)
* Make Extrinsic compatible with Method * Remove Method -> methodIndex, only use callIndex
This commit is contained in:
@@ -29,10 +29,12 @@ export default function createDescriptor (
|
||||
throw new Error(`Extrinsic ${section}.${method} expects ${expectedArgs.length.valueOf()} arguments, got ${args.length}.`);
|
||||
}
|
||||
|
||||
console.error(`${section}.${method}`, args);
|
||||
|
||||
return new Extrinsic({
|
||||
method: new Method({
|
||||
methodIndex: callIndex,
|
||||
args
|
||||
args,
|
||||
callIndex
|
||||
}, meta)
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user