TMP Commit

This commit is contained in:
evgeniy-scherbina 2024-01-04 09:33:06 -05:00
parent 01d4a40325
commit cd85455098

View file

@ -249,17 +249,13 @@ func (c *sum3) RequiredGas(input []byte) uint64 {
func (c *sum3) Run(input []byte) ([]byte, error) { func (c *sum3) Run(input []byte) ([]byte, error) {
log.Info(fmt.Sprintf("input: %v\n", input)) log.Info(fmt.Sprintf("input: %v\n", input))
//num := big.Int{} //a := make([]byte, 32)
//num.SetBytes(input) //copy(a, input[:32])
//
//big.
//output := []byte{40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40} a := big.Int{}
a.SetBytes(input[:32])
output := make([]byte, 32) return common.LeftPadBytes(a.Bytes(), 32), nil
copy(output, input)
return output, nil
} }
// RIPEMD160 implemented as a native contract. // RIPEMD160 implemented as a native contract.