mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-18 07:48:46 +00:00
sharding/client: Removing errors(#92)
Former-commit-id: 0c678a1778c83476c688a1bf1353aaba8cde10dc [formerly 7c5f2802600371759e1c62a64be357d05f8a2012] Former-commit-id: 34566a72446f3e902095da0b57bf4007683068f1
This commit is contained in:
parent
c25de5167d
commit
ba48071e2d
@ -138,7 +138,7 @@ func Serialize(rawtx []interface{}) ([]byte, error) {
|
||||
data := rawtx[i]
|
||||
refinedData, err := serializeBlob(data)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Error: %v at index: %v %v %v", err, i, data, rawtx)
|
||||
return nil, fmt.Errorf("Error: %v at index: %v", i, err)
|
||||
}
|
||||
serialisedData = append(serialisedData, refinedData...)
|
||||
|
||||
|
@ -53,14 +53,14 @@ func TestSize(t *testing.T) {
|
||||
|
||||
if int64(len(serializedblob)) != sizeafterSerialize {
|
||||
|
||||
t.Fatalf("Error Serializing blob,Lengths are not the same: %v , %v", int64(len(serializedblob)), sizeafterSerialize)
|
||||
t.Fatalf("Error Serializing blobs the lengths are not the same: %v , %v", int64(len(serializedblob)), sizeafterSerialize)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
func TestSerializeAndDeserializeblob(t *testing.T) {
|
||||
|
||||
blob := buildtxblobs(31)
|
||||
blob := buildtxblobs(30)
|
||||
|
||||
serializedblob, err := Serialize(blob)
|
||||
|
||||
@ -74,7 +74,7 @@ func TestSerializeAndDeserializeblob(t *testing.T) {
|
||||
|
||||
if !reflect.DeepEqual(blob, testbody) {
|
||||
|
||||
t.Fatalf("Error Serializing blob with %v %v", blob, testbody)
|
||||
t.Fatalf("Error Serializing blobs, the serialized and deserialized versions are not the same: %v %v", blob, testbody)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user