mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-11 17:31:35 +00:00
fix lint: ineffassign in ssz.go, goimports in defaults.go and ssz_rest_test.go
This commit is contained in:
parent
b545134da5
commit
650273aa6c
3 changed files with 8 additions and 10 deletions
|
|
@ -737,7 +737,6 @@ func EncodeExecutableDataSSZ(ep *ExecutableData, version int) []byte {
|
||||||
balOffset += len(withdrawalData)
|
balOffset += len(withdrawalData)
|
||||||
}
|
}
|
||||||
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
|
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
|
||||||
pos += 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variable part
|
// Variable part
|
||||||
|
|
@ -816,7 +815,6 @@ func DecodeExecutableDataSSZ(buf []byte, version int) (*ExecutableData, error) {
|
||||||
ep.SlotNumber = &slotNumber
|
ep.SlotNumber = &slotNumber
|
||||||
pos += 8
|
pos += 8
|
||||||
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
|
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
|
||||||
pos += 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode variable-length fields
|
// Decode variable-length fields
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue