Merge pull request #2890 from ethereum/format

minor patch to bytes formatting in capella
This commit is contained in:
Hsiao-Wei Wang 2022-05-10 17:47:39 +02:00 committed by GitHub
commit 8abf2393d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ def process_bls_to_execution_change(state: BeaconState,
validator.withdrawal_credentials = (
ETH1_ADDRESS_WITHDRAWAL_PREFIX
+ (0x00).to_bytes(11, 'little')
+ b'\x00' * 11
+ address_change.to_execution_address
)
```