From d5193ad48eb5fb3afcafa1881929de3f27ca0b72 Mon Sep 17 00:00:00 2001 From: Henrique Marlon Date: Fri, 8 Nov 2024 17:53:52 -0300 Subject: [PATCH] chore: formatter --- address.go | 2 +- env.go | 2 +- etherwallet.go | 2 +- examples/honeypotapp/honeypot_test.go | 2 +- examples/main.go | 4 ++-- rollmelette.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/address.go b/address.go index 0e8cbd0..497bb0b 100644 --- a/address.go +++ b/address.go @@ -35,4 +35,4 @@ func NewAddressBook() AddressBook { SafeERC20Transfer: common.HexToAddress("0x817b126F242B5F184Fa685b4f2F91DC99D8115F9"), SelfHostedApplicationFactory: common.HexToAddress("0x0678FAA399F0193Fb9212BE41590316D275b1392"), } -} \ No newline at end of file +} diff --git a/env.go b/env.go index c94c98a..812edbc 100644 --- a/env.go +++ b/env.go @@ -113,7 +113,7 @@ func (e *env) Report(payload []byte) { } } -func (e *env) AppAddress() (common.Address) { +func (e *env) AppAddress() common.Address { return e.appAddress } diff --git a/etherwallet.go b/etherwallet.go index f93041c..b0b88e7 100644 --- a/etherwallet.go +++ b/etherwallet.go @@ -5,10 +5,10 @@ package rollmelette import ( "fmt" + "github.com/ethereum/go-ethereum/common" "log/slog" "math/big" "slices" - "github.com/ethereum/go-ethereum/common" ) // EtherDeposit //////////////////////////////////////////////////////////////////////////////////// diff --git a/examples/honeypotapp/honeypot_test.go b/examples/honeypotapp/honeypot_test.go index dcdb7fb..b27b288 100644 --- a/examples/honeypotapp/honeypot_test.go +++ b/examples/honeypotapp/honeypot_test.go @@ -102,4 +102,4 @@ func (s *HoneypotSuite) TestItReportsBalanceInInspect() { func (s *HoneypotSuite) checkBalance(expected int64, payload []byte) { balance := new(big.Int).SetBytes(payload) s.Zerof(balance.Cmp(big.NewInt(expected)), "expected %v; got %v", expected, balance) -} \ No newline at end of file +} diff --git a/examples/main.go b/examples/main.go index 82e2fcd..af0ccf2 100644 --- a/examples/main.go +++ b/examples/main.go @@ -18,8 +18,8 @@ import ( func main() { examples := map[string]rollmelette.Application{ - "echo": &echoapp.EchoApplication{}, - "error": &errorapp.ErrorApplication{}, + "echo": &echoapp.EchoApplication{}, + "error": &errorapp.ErrorApplication{}, "honeypot": &honeypotapp.HoneypotApplication{ Owner: common.HexToAddress("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"), }, diff --git a/rollmelette.go b/rollmelette.go index e34ce53..48964ee 100644 --- a/rollmelette.go +++ b/rollmelette.go @@ -55,7 +55,7 @@ type EnvInspector interface { // AppAddress returns the application address sent by the address relay contract. // If the contract didn't send the address yet, the function returns false. - AppAddress() (common.Address) + AppAddress() common.Address // EtherAddresses returns the list of addresses that have Ether. EtherAddresses() []common.Address