Make Extrinsic compatible with Method (#335)

* Make Extrinsic compatible with Method

* Remove Method -> methodIndex, only use callIndex
This commit is contained in:
Jaco Greeff
2018-10-22 12:10:39 +02:00
committed by GitHub
parent b3e9b2510b
commit 9f570cbbe9
8 changed files with 79 additions and 32 deletions
@@ -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)
});
};