Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create a proposal via API with voting delays #804

Open
jamesdobry opened this issue Apr 4, 2023 · 1 comment
Open

Cannot create a proposal via API with voting delays #804

jamesdobry opened this issue Apr 4, 2023 · 1 comment

Comments

@jamesdobry
Copy link

Expected behavior

I can create a proposal that has a global voting delay set via the API by also calculating and setting the delay.

Actual behavior

The API creates a timestamp that is either 1 second later than when the delay was calculated. This results in a failure since the service calculate the delay off of the timestamp and realizes it is 1 second off from the global setting.

Steps to reproduce the behavior

  • Set a global setting in a space
  • Use the SnapshotJS API to create a proposal, setting the delay from Date.now()
  • Notice how the timestamp in the signing is 1 second off from the projected delay.
@ChaituVR
Copy link
Member

Hi, @jamesdobry can you provide us the code to reproduce this, ideally on a sandbox environment, what are the values you have given for delay? Did you check how is it handled on snapshot.org?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants