Skip to content

Commit db1ebd7

Browse files
committed
[tx_builder] ensure that block number and block hash are corresponding to the same block
1 parent eb42e6c commit db1ebd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/service/tx/lib/src/tx_builder.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TxBuilder {
3232
// fetch recent relevant data from chain
3333
final runtimeVersion = await _getRuntimeVersion();
3434
final blockNumber = await _getBlockNumber();
35-
final blockHash = await _getBlockHash();
35+
final blockHash = await _getBlockHash(blockNumber: blockNumber);
3636
final genesisHash = await _getBlockHash(blockNumber: 0);
3737
final accountInfo = await encointerKusama.query.system.account(pair.publicKey.bytes);
3838

0 commit comments

Comments
 (0)