You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when creating NetworkTimestamp (NEM or Symbol) and we do not pass epoch_time to methods to_datetime and from_datetime by default is used mainnet epoch time:
A developer using SDK may expect that the testnet network will be supported 'by default'. He may not notice that it's required to pass epoch time for the test net. This could also to problems when moving code from testing (testnet) to production (mainnet).
Expected Behaviour
Support for testnet as is supported in Facades. Maybe add Network (with added epoch time) as a parameter?
problem: NetworkTimestamp is using mainnet epoch as default epoch.
This makes using it with other networks more difficult.
solution: move to_datetime and from_datetime into Network class from NetworkTimestamp.
provide network epoch to Network constructor.
issues: #243, #244
problem: NetworkTimestamp is using mainnet epoch as default epoch.
This makes using it with other networks more difficult.
solution: move to_datetime and from_datetime into Network class from NetworkTimestamp.
provide network epoch to Network constructor.
issues: #243, #244
problem: NetworkTimestamp is using mainnet epoch as default epoch.
This makes using it with other networks more difficult.
solution: move to_datetime and from_datetime into Network class from NetworkTimestamp.
provide network epoch to Network constructor.
issues: #243, #244
Current Behaviour
Currently, when creating
NetworkTimestamp
(NEM or Symbol) and we do not passepoch_time
to methodsto_datetime
andfrom_datetime
by default is used mainnet epoch time:https://github.com/symbol/symbol/blob/dev/sdk/python/symbolchain/symbol/NetworkTimestamp.py#L6
https://github.com/symbol/symbol/blob/dev/sdk/python/symbolchain/nem/NetworkTimestamp.py#L6
What's the problem?
A developer using SDK may expect that the testnet network will be supported 'by default'. He may not notice that it's required to pass epoch time for the test net. This could also to problems when moving code from testing (testnet) to production (mainnet).
Expected Behaviour
Support for testnet as is supported in Facades. Maybe add Network (with added epoch time) as a parameter?
The corresponding issue for JS SDK: #243
The text was updated successfully, but these errors were encountered: