Skip to content

Commit

Permalink
Merge branch 'main' into beacon-state-inconsistent-gwei-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 authored Oct 3, 2024
2 parents 0b80e54 + c1c5172 commit f54531f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mod/consensus-types/pkg/types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,16 @@ func (b *BeaconBlock) NewFromSSZ(
bz []byte,
forkVersion uint32,
) (*BeaconBlock, error) {
var block = new(BeaconBlock)
var block *BeaconBlock
switch forkVersion {
case version.Deneb:
block = &BeaconBlock{}
return block, block.UnmarshalSSZ(bz)
case version.DenebPlus:
panic("unsupported fork version")
default:
return block, ErrForkVersionNotSupported
}

return block, block.UnmarshalSSZ(bz)
}

/* -------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion mod/consensus-types/pkg/types/withdrawal_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewCredentialsFromExecutionAddress(
address common.ExecutionAddress,
) WithdrawalCredentials {
credentials := WithdrawalCredentials{}
credentials[0] = 0x01
credentials[0] = EthSecp256k1CredentialPrefix
copy(credentials[12:], address[:])
return credentials
}
Expand Down

0 comments on commit f54531f

Please sign in to comment.