Skip to content

Commit

Permalink
fix(faucet): make faucet drop 10 coins (ethereum#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
tremblaythibaultl authored Jun 29, 2023
1 parent c78c376 commit b04fd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,7 @@ func (e *faucet) RequiredGas(accessibleState PrecompileAccessibleState, input []

func (e *faucet) Run(accessibleState PrecompileAccessibleState, caller common.Address, addr common.Address, input []byte, readOnly bool) ([]byte, error) {
accessibleState.Interpreter().evm.Logger.Info("faucet called", "callerAddr", caller)
accessibleState.Interpreter().evm.StateDB.AddBalance(common.BytesToAddress(input[0:20]), big.NewInt(1000000000000000000))
accessibleState.Interpreter().evm.StateDB.AddBalance(common.BytesToAddress(input[0:20]), big.NewInt(0).Mul(big.NewInt(1000000000000000000), big.NewInt(10)))
return input, nil
}

Expand Down

0 comments on commit b04fd5b

Please sign in to comment.