Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
It flows :)
  • Loading branch information
jacogr committed Jul 21, 2019
commit 8e8c5f97be2425f4dd84fa84d835660e78d49c3f
2 changes: 0 additions & 2 deletions packages/api/src/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,6 @@ export default abstract class ApiBase<ApiType> {
const lastBlock: SignedBlock = await this._rpcCore.chain.getBlock().toPromise();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now determine the extrinsic version from the chain - basically, based on the last block, we pull out the version from contained extrinsics and then use this in any future construction of this type.


this._extrinsicVersion = lastBlock.block.extrinsics[0].versionFormat;

console.error('Setting extrinsic version', this._extrinsicVersion);
}

this._extrinsics = this.decorateExtrinsics(extrinsics, this.decorateMethod);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/e2e/api/promise-tx.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describeE2E({
.send(logEvents(done));
});

it.only('makes a transfer (signAndSend, immortal)', async (done): Promise<() => void> => {
it('makes a transfer (signAndSend, immortal)', async (done): Promise<() => void> => {
return api.tx.balances
.transfer(keyring.eve.address, 12345)
.signAndSend(keyring.charlie, { era: 0 }, logEvents(done));
Expand Down