matter-labs / era-test-node

In-memory node that can be used for integration testing and debugging.
https://matter-labs.github.io/era-test-node
Apache License 2.0
308 stars 76 forks source link

fix:`evm_setNextBlockTimestamp` to return timestamp not in hex format #273

Closed dutterbutter closed 4 months ago

dutterbutter commented 8 months ago

🐛 Bug Report for zkSync Era In-Memory Node

📝 Description

Currently evm_setNextBlockTimestamp returns timestamp in a hex format.

🔄 Reproduction Steps

  1. Make curl request to evm_setNextBlockTimestamp

🤔 Expected Behavior

Should return timestamp as:

{
  "jsonrpc": "2.0",
  "result": 1750074671,
  "id": "1234"
}

😯 Current Behavior

Currently evm_setNextBlockTimestamp returns timestamp in a hex format.

{
  "jsonrpc": "2.0",
  "result": '0x6850052f',
  "id": "1234"
}

🖥️ Environment

📋 Additional Context

Add any other context about the problem here. If applicable, add screenshots to help explain.

📎 Log Output

Paste any relevant log output here.
MexicanAce commented 4 months ago

This is resolved