Skip to content

block.timestamp precision not specified — appears to return milliseconds, not seconds #4

Description

@pplmaverick

Summary

The Solidity documentation does not specify the unit of block.timestamp on Ritual Chain. Standard EVM chains return Unix time in seconds, but in my testing, block.timestamp on Ritual Chain appears to return a value consistent with milliseconds.

Steps to reproduce

  • Deployed a contract on Ritual testnet (chain ID 1979) that logs block.timestamp
  • Compared the on-chain value against the block's actual wall-clock time from the explorer

Expected behavior

block.timestamp follows standard EVM convention (seconds since Unix epoch), consistent with tooling built for Foundry/Hardhat/viem.

Actual behavior

The returned value is consistent with milliseconds, which silently breaks any time-based logic (e.g. auction deadlines, TTLs) written with standard EVM assumptions.

Ask

Could the team confirm whether this is intentional? If so, it would be very helpful to document this explicitly, since it's a common source of silent bugs for developers porting EVM logic. Happy to provide more test transactions if useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions