Fix [ProveInit] compilation warning.

This commit is contained in:
cheatfate 2018-04-30 21:38:43 +03:00
parent caf273228e
commit 0e5cd27e84
1 changed files with 1 additions and 2 deletions

View File

@ -97,8 +97,7 @@ proc recoverMsgPublicKey(msg: Bytes, pk: var PublicKey): bool =
pk) == EthKeysStatus.Success
proc unpack(msg: Bytes): tuple[cmdId: CommandId, payload: Bytes] =
result.cmdId = msg[HEAD_SIZE].CommandId
result.payload = msg[HEAD_SIZE + 1 .. ^1]
result = (cmdId: msg[HEAD_SIZE].CommandId, payload: msg[HEAD_SIZE + 1 .. ^1])
proc expiration(): uint32 =
result = uint32(epochTime() + EXPIRATION)