Skip to content

Commit 64a19a0

Browse files
committed
core/types: align EIP-8130 tx type to 0x79 in tests and comments
1 parent 5c6de3a commit 64a19a0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/types/eip8130_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (tx *Eip8130Tx) decode(input []byte) error {
207207
// any recovery uses an EIP-8130-specific payload, so the generic signing-hash
208208
// path does not apply. It returns the zero hash as a sentinel rather than
209209
// panicking; the signer never consumes it (modernSigner.Sender short-circuits
210-
// 0x7B before reaching the hash path).
210+
// 0x79 before reaching the hash path).
211211
func (tx *Eip8130Tx) sigHash(*big.Int) common.Hash {
212212
return common.Hash{}
213213
}

core/types/eip8130_tx_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func TestEip8130TxAccountChangesRoundTrip(t *testing.T) {
223223
}
224224

225225
// TestEip8130TxWireLiteralRoundTrip starts from a hand-built canonical
226-
// 0x7b||rlp(...) wire encoding with empty account_changes / calls (0xc0) and empty
226+
// 0x79||rlp(...) wire encoding with empty account_changes / calls (0xc0) and empty
227227
// auth, decodes it, and re-encodes it. It also checks that a transaction built with
228228
// nil account_changes / calls encodes to that same canonical wire: empty fields must
229229
// become the RLP empty list (0xc0) so the 2718 stream keeps its full element count.
@@ -497,7 +497,7 @@ func TestEip8130TxJSONVariants(t *testing.T) {
497497
func TestEip8130TxJSONRethShape(t *testing.T) {
498498
senderAuth := "0x" + strings.Repeat("ab", 32)
499499
input := `{
500-
"type":"0x7b",
500+
"type":"0x79",
501501
"tx":{
502502
"chainId":8453,
503503
"sender":"0x0000000000000000000000000000000000000011",
@@ -572,7 +572,7 @@ func TestEip8130TxJSONRethShape(t *testing.T) {
572572
t.Fatalf("unmarshal output: %v", err)
573573
}
574574
for k, want := range map[string]string{
575-
"type": `"0x7b"`,
575+
"type": `"0x79"`,
576576
"senderAuth": `"` + senderAuth + `"`,
577577
"payerAuth": `"0x"`,
578578
} {

core/types/transaction_signing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (s *modernSigner) Sender(tx *Transaction) (common.Address, error) {
280280
// authorization, not the signer.
281281
//
282282
// This branch also short-circuits before the generic chain-id check below:
283-
// chain-id / replay binding for 0x7B is not enforced by the signer layer but
283+
// chain-id / replay binding for 0x79 is not enforced by the signer layer but
284284
// by EIP-8130 execution validation (per-ConfigChange chain_id and the tx
285285
// chain_id bound during authorization).
286286
if tt == Eip8130TxType {

0 commit comments

Comments
 (0)