fix culimit
This commit is contained in:
@@ -31,7 +31,7 @@ func computeUnitLimitParser(offset [2]uint, tx *Tx, decodedData []byte) ([2]uint
|
||||
if len(decodedData) < 4 {
|
||||
return increaseOffset(offset), nil
|
||||
}
|
||||
tx.CuLimit = binary.BigEndian.Uint32(decodedData[:4])
|
||||
tx.CuLimit = binary.LittleEndian.Uint32(decodedData[:4])
|
||||
return increaseOffset(offset), nil
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ func main() {
|
||||
continue
|
||||
}
|
||||
ptx := msg.Tx
|
||||
fmt.Println("consume", ptx.ComputeUnitsConsumed, "limit", ptx.CuLimit, "hash", ptx.GetTxHash())
|
||||
//data, _ := json.Marshal(tx)
|
||||
//fmt.Println(string(data))
|
||||
//continue
|
||||
|
||||
Reference in New Issue
Block a user