User proper data type for timestamp
@@ -18,6 +18,7 @@ package icon
import (
"encoding/json"
+
"github.com/icon-project/goloop/common"
"github.com/icon-project/goloop/common/db"
"github.com/icon-project/goloop/common/log"
@@ -62,7 +63,7 @@ func (p *platform) ToRevision(value int) module.Revision {
func (p *platform) NewBaseTransaction(wc state.WorldContext) (module.Transaction, error) {
// TODO calculate issued i-score and amount balance. No changes on world context.
// t := common.HexInt64{Value: time.Now().UnixNano() / int64(time.Microsecond)}
- t := wc.BlockTimeStamp()
+ t := common.HexInt64{Value: wc.BlockTimeStamp()}
v := common.HexUint16{Value: module.TransactionVersion3}
es := wc.GetExtensionState().(*iiss.ExtensionStateImpl)
prep, issue := iiss.GetIssueData(es)
