@@ -19,7 +19,6 @@ package abi
1919import (
2020 "crypto/rand"
2121 "encoding/binary"
22- "fmt"
2322 "math/big"
2423 "testing"
2524
@@ -873,27 +872,26 @@ func categorySelfRoundTripTest(t *testing.T, category []testUnit) {
873872 require .NoError (t , err , "failure to deserialize type: " + testObj .serializedType )
874873 encodedValue , err := abiType .Encode (testObj .value )
875874 require .NoError (t , err ,
876- fmt . Sprintf ( "failure to encode value %#v over type %s" , testObj .value , testObj .serializedType ) ,
875+ "failure to encode value %#v over type %s" , testObj .value , testObj .serializedType ,
877876 )
878877 actual , err := abiType .Decode (encodedValue )
879878 require .NoError (t , err ,
880- fmt . Sprintf ( "failure to decode value %#v for type %s" , encodedValue , testObj .serializedType ) ,
879+ "failure to decode value %#v for type %s" , encodedValue , testObj .serializedType ,
881880 )
882881 require .Equal (t , testObj .value , actual ,
883- fmt . Sprintf ( "decoded value %#v not equal to expected value %#v" , actual , testObj .value ) ,
882+ "decoded value %#v not equal to expected value %#v" , actual , testObj .value ,
884883 )
885884 jsonEncodedValue , err := abiType .MarshalToJSON (testObj .value )
886885 require .NoError (t , err ,
887- fmt . Sprintf ( "failure to encode value %#v to JSON type" , testObj .value ) ,
886+ "failure to encode value %#v to JSON type" , testObj .value ,
888887 )
889888 jsonActual , err := abiType .UnmarshalFromJSON (jsonEncodedValue )
890889 require .NoError (t , err ,
891- fmt .Sprintf ("failure to decode JSON value %s back for type %s" ,
892- string (jsonEncodedValue ), testObj .serializedType ,
893- ),
890+ "failure to decode JSON value %s back for type %s" ,
891+ string (jsonEncodedValue ), testObj .serializedType ,
894892 )
895893 require .Equal (t , testObj .value , jsonActual ,
896- fmt . Sprintf ( "decode JSON value %s not equal to expected %s" , jsonActual , testObj .value ) ,
894+ "decode JSON value %s not equal to expected %s" , jsonActual , testObj .value ,
897895 )
898896 }
899897}
0 commit comments