fix: undefined is a valid result for getBlockTime

This commit is contained in:
Justin Starry 2020-08-14 23:04:49 +08:00 committed by Justin Starry
parent de22f3d0e7
commit 2011ed3344
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ const GetBlockTimeRpcResult = struct({
jsonrpc: struct.literal('2.0'),
id: 'string',
error: 'any?',
result: struct.union(['null', 'number']),
result: struct.union(['null', 'number', 'undefined']),
});
/**