Skip to content

Can't create immortal transaction #332

@leonardocustodio

Description

@leonardocustodio

Hello guys,

When doing the following:

const unsigned = methods.balances.transferKeepAlive(
		{
			value: '1000000000000000000',
			dest: { id: '5DNs2sarEnjif92dAqkkgkcKCzEL7VXYajopoKWDd2zjmsKH' }, // Bob
		},
		{
			address: deriveAddress(alice.publicKey, PolkadotSS58Format.polkadot),
			blockHash: genesisHash,
			blockNumber: 0,
			genesisHash,
			metadataRpc,
			nonce: 3, // Assuming this is Alice's first tx on the chain
			specVersion,
			tip: 0,
			transactionVersion,
		},
		{
			metadataRpc: metadataRpc,
			registry: registry,
			isImmortalEra: true,
		}
	);

I get the following error:

Error: createType(MortalEra):: Invalid data passed to Mortal era

Am I doing something wrong? Are we suppose to change other parts and not only the isImmortalEra arg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions