Fix problem, making invalid ICXTransfer event log
Make it use intconv.BigIntToBytes() instead of big.Int.Bytes()
@@ -4,6 +4,7 @@ import (
"math/big"
"github.com/icon-project/goloop/common/codec"
+ "github.com/icon-project/goloop/common/intconv"
"github.com/icon-project/goloop/module"
"github.com/icon-project/goloop/service/scoreresult"
"github.com/icon-project/goloop/service/txresult"
@@ -60,7 +61,7 @@ func (h *TransferHandler) DoExecuteSync(cc CallContext) (err error, ro *codec.Ty
indexed[0] = []byte(txresult.EventLogICXTransfer)
indexed[1] = h.From.Bytes()
indexed[2] = h.To.Bytes()
- indexed[3] = h.Value.Bytes()
+ indexed[3] = intconv.BigIntToBytes(h.Value)
cc.OnEvent(h.From, indexed, make([][]byte, 0))
}
