Commit d63ce299 authored by Amaury Martiny's avatar Amaury Martiny
Browse files

Fix test

parent 83c1a880
......@@ -2,7 +2,7 @@ import { balanceTransfer } from './balanceTransfer';
import { createSignedTx } from './createSignedTx';
import { createSigningPayload } from './createSigningPayload';
import { decodeTx } from './decodeTx';
import { signWithAlice, TEST_TX_INFO } from './util/testUtil';
import { metadataRpc, signWithAlice, TEST_TX_INFO } from './util/testUtil';
describe('decodeTx', () => {
it('should work', async done => {
......@@ -12,7 +12,7 @@ describe('decodeTx', () => {
const tx = createSignedTx(unsigned, signature);
const txInfo = decodeTx(tx, unsigned.metadataRpc);
const txInfo = decodeTx(tx, metadataRpc);
(['address', 'amount', 'nonce', 'tip', 'to'] as const).forEach(key =>
expect(txInfo[key]).toBe(TEST_TX_INFO[key])
......
......@@ -6,6 +6,8 @@ import { cryptoWaitReady } from '@polkadot/util-crypto';
import { TxInfo } from '../balanceTransfer';
export { metadataRpc };
/**
* @ignore
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment