@@ -110,10 +110,10 @@ func TestPrecompileIntegrationTestSuite(t *testing.T, create network.CreateEvmAp
110110 copy (input [0 :32 ], hash )
111111
112112 // ALWAYS left-pad to 32 bytes:
113- copy (input [32 :64 ], common . LeftPadBytes ( rInt . Bytes (), 32 ) )
114- copy (input [64 :96 ], common . LeftPadBytes ( sInt . Bytes (), 32 ) )
115- copy (input [96 :128 ], common . LeftPadBytes ( pub . X . Bytes (), 32 ) )
116- copy (input [128 :160 ], common . LeftPadBytes ( pub . Y . Bytes (), 32 ) )
113+ rInt . FillBytes (input [32 :64 ])
114+ sInt . FillBytes (input [64 :96 ])
115+ pub . X . FillBytes (input [96 :128 ])
116+ pub . Y . FillBytes (input [128 :160 ])
117117 return input , nil , ""
118118 },
119119 ),
@@ -170,11 +170,10 @@ func TestPrecompileIntegrationTestSuite(t *testing.T, create network.CreateEvmAp
170170
171171 input = make ([]byte , p256 .VerifyInputLength )
172172 copy (input [0 :32 ], hash )
173- // ALWAYS left-pad to 32 bytes:
174- copy (input [32 :64 ], common .LeftPadBytes (rInt .Bytes (), 32 ))
175- copy (input [64 :96 ], common .LeftPadBytes (sInt .Bytes (), 32 ))
176- copy (input [96 :128 ], common .LeftPadBytes (privB .PublicKey .X .Bytes (), 32 ))
177- copy (input [128 :160 ], common .LeftPadBytes (privB .PublicKey .Y .Bytes (), 32 ))
173+ rInt .FillBytes (input [32 :64 ])
174+ sInt .FillBytes (input [64 :96 ])
175+ privB .PublicKey .X .FillBytes (input [96 :128 ])
176+ privB .PublicKey .Y .FillBytes (input [128 :160 ])
178177 return input
179178 },
180179 ),
0 commit comments