pr issues

This commit is contained in:
Dror Tirosh 2024-07-06 15:12:44 +03:00
parent 49bc2a8570
commit d5c3069d71
2 changed files with 0 additions and 3 deletions

View file

@ -356,7 +356,6 @@ func prepareAccountValidationMessage(baseTx *types.Transaction, chainConfig *par
return &Message{ return &Message{
From: chainConfig.EntryPointAddress, From: chainConfig.EntryPointAddress,
To: tx.Sender, To: tx.Sender,
Nonce: tx.Nonce,
Value: big.NewInt(0), Value: big.NewInt(0),
GasLimit: tx.ValidationGas - deploymentUsedGas, GasLimit: tx.ValidationGas - deploymentUsedGas,
GasPrice: tx.GasFeeCap, GasPrice: tx.GasFeeCap,

View file

@ -14,8 +14,6 @@ import (
) )
func TestPackValidationData(t *testing.T) { func TestPackValidationData(t *testing.T) {
//assert.Equal(t, make([]byte, 32), packValidationData(0, 0, 0))
//assert.Equal(t, new(big.Int).SetInt64(0x1234).Text(16), new(big.Int).SetBytes(packValidationData(0x1234, 0, 0)).Text(16))
// --------------- after 6bytes before 6 bytes magic 20 bytes // --------------- after 6bytes before 6 bytes magic 20 bytes
validationData := "000000000002" + "000000000001" + "0000000000000000000000000000000000001234" validationData := "000000000002" + "000000000001" + "0000000000000000000000000000000000001234"
packed, _ := new(big.Int).SetString(validationData, 16) packed, _ := new(big.Int).SetString(validationData, 16)