mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
* wip * gaz * rename field * sammy review * updating execution api request and reverting response back * fixing linting * changelog * changelog * adding in serialization of requests * code cleanup * adding some happy path tests and fixing mock * mock still broken * fixing linting * updating name on proto * missed naming * placeholder fix for TestClient_HTTP * removing duplicate change log * adding in test for get payloadv4 as well as some tests * added tests for execution client testing, fixed encode type * adding comment for placeholder test * fixing test and addressing feedback * feedback * flipping the test names, was used in reverse * feedback from kasey * reverting switch back to if statements to fix bug * lint
12 lines
290 B
Go
12 lines
290 B
Go
package enginev1
|
|
|
|
type Copier[T any] copier[T]
|
|
|
|
func MarshalItems[T sszMarshaler](items []T) ([]byte, error) {
|
|
return marshalItems(items)
|
|
}
|
|
|
|
func UnmarshalItems[T sszUnmarshaler](data []byte, itemSize int, newItem func() T) ([]T, error) {
|
|
return unmarshalItems(data, itemSize, newItem)
|
|
}
|