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

Assert expire when `init` #10

Closed
DenisCarriere opened this issue May 12, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@DenisCarriere
Copy link
Member

commented May 12, 2019

  • expire must be in the future
  • expire cannot be greater then 6 months

@DenisCarriere DenisCarriere added this to the v1 milestone May 12, 2019

@DenisCarriere DenisCarriere self-assigned this May 12, 2019

@DenisCarriere

This comment has been minimized.

Copy link
Member Author

commented May 12, 2019

must be in the future

$ bteosc tx create escrow.bos init \
'{"sender":"bet.bos","receiver":"deniscarrier","approver":"eosio","expires":"2018-09-13T19:54:40","memo":"test external_reference", "ext_reference":123}' -p bet.bos

ERROR: pushing transaction: Internal Service Error: eosio_assert_message assertion failure: assertion failure with message: expires must be a value in the future.: pending console output: 

within 6 months

$ beosc tx create escrow.bos init \
'{"sender":"bet.bos","receiver":"deniscarrier","approver":"eosio","expires":"2020-09-13T19:54:40","memo":"test external_reference", "ext_reference":123}' -p bet.bos

ERROR: pushing transaction: Internal Service Error: eosio_assert_message assertion failure: assertion failure with message: expires must be within 6 months from now.: pending console output: 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.