fix: Rename lastId to blockhash
This commit is contained in:
21
web3.js/test/mockrpc/get-recent-blockhash.js
Normal file
21
web3.js/test/mockrpc/get-recent-blockhash.js
Normal file
@ -0,0 +1,21 @@
|
||||
// @flow
|
||||
|
||||
import {Account} from '../../src';
|
||||
import {url} from '../url';
|
||||
import {mockRpc} from '../__mocks__/node-fetch';
|
||||
|
||||
export function mockGetRecentBlockhash() {
|
||||
const recentBlockhash = new Account();
|
||||
|
||||
mockRpc.push([
|
||||
url,
|
||||
{
|
||||
method: 'getRecentBlockhash',
|
||||
params: [],
|
||||
},
|
||||
{
|
||||
error: null,
|
||||
result: recentBlockhash.publicKey.toBase58(),
|
||||
},
|
||||
]);
|
||||
}
|
Reference in New Issue
Block a user