Fix StorageKey args throw

This commit is contained in:
Jaco Greeff
2020-03-07 10:37:28 +01:00
parent 0ce28c519f
commit 6bb421dac6
6 changed files with 31 additions and 9 deletions
+16
View File
@@ -0,0 +1,16 @@
// Copyright 2017-2020 @polkadot/api authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ApiPromise, WsProvider } from '@polkadot/api';
describe.skip('misc quick tests', (): void => {
it.skip('does something in society', async (): Promise<void> => {
const provider = new WsProvider('wss://kusama-rpc.polkadot.io');
const api = await new ApiPromise({ provider }).isReady;
console.error(api.query.society.defenderVotes.creator.meta.toHuman());
await api.query.society.defenderVotes('Dab4bfYTZRUDMWjYAUQuFbDreQ9mt7nULWu3Dw7jodbzVe9');
});
});