From 8755503f26f4fb86d56110b7feced5daf949da7e Mon Sep 17 00:00:00 2001 From: rubyisrust Date: Tue, 18 Mar 2025 14:02:40 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: rubyisrust --- server/ofacblacklist_test.go | 2 +- server/request_intercepts.go | 2 +- server/url_params.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/ofacblacklist_test.go b/server/ofacblacklist_test.go index 4c22b48..b0fa6f0 100644 --- a/server/ofacblacklist_test.go +++ b/server/ofacblacklist_test.go @@ -15,7 +15,7 @@ func Test_isOnOFACList(t *testing.T) { address: "0X53B6936513E738F44FB50D2B9476730C0AB3BFC1", want: true, }, - "Check unknow": { + "Check unknown": { address: "0X5", want: false, }, diff --git a/server/request_intercepts.go b/server/request_intercepts.go index 725de4e..e22c6c3 100644 --- a/server/request_intercepts.go +++ b/server/request_intercepts.go @@ -154,7 +154,7 @@ func (r *RpcRequest) intercept_mm_eth_getTransactionCount() (requestFinished boo return true } -// Returns true if request has already received a response, false if req should contiue to normal proxy +// Returns true if request has already received a response, false if req should continue to normal proxy func (r *RpcRequest) intercept_eth_call_to_FlashRPC_Contract() (requestFinished bool) { if len(r.jsonReq.Params) < 1 { return false diff --git a/server/url_params.go b/server/url_params.go index f4f1791..87333c3 100644 --- a/server/url_params.go +++ b/server/url_params.go @@ -23,7 +23,7 @@ var ( ErrIncorrectRefundQuery = errors.New("Incorrect refund query, must be 0xaddress:percentage.") ErrIncorrectRefundAddressQuery = errors.New("Incorrect refund address.") ErrIncorrectRefundPercentageQuery = errors.New("Incorrect refund percentage.") - ErrIncorrectRefundTotalPercentageQuery = errors.New("Incorrect refund total percentage, must be bellow 100%.") + ErrIncorrectRefundTotalPercentageQuery = errors.New("Incorrect refund total percentage, must be below 100%.") ) type URLParameters struct {