From 5cba1700db3e2df1a4bfbcb4e0950bafda6a3bb2 Mon Sep 17 00:00:00 2001 From: vuittont60 <81072379+vuittont60@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:13:29 +0800 Subject: [PATCH] Fix typos --- address/address_test.go | 2 +- types/tx.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/address/address_test.go b/address/address_test.go index 611c7cc..316a259 100644 --- a/address/address_test.go +++ b/address/address_test.go @@ -45,7 +45,7 @@ func TestRemove0x(t *testing.T) { input string want string }{ - {"remove 0x from addres", "0x158079ee67fce2f58472a96584a73c7ab9ac95c1", "158079ee67fce2f58472a96584a73c7ab9ac95c1"}, + {"remove 0x from address", "0x158079ee67fce2f58472a96584a73c7ab9ac95c1", "158079ee67fce2f58472a96584a73c7ab9ac95c1"}, {"remove 0x from hash", "0x230798fe22abff459b004675bf827a4089326a296fa4165d0c2ad27688e03e0c", "230798fe22abff459b004675bf827a4089326a296fa4165d0c2ad27688e03e0c"}, {"remove 0x hex value", "0xfffdefefed", "fffdefefed"}, {"remove 0x hex number", "0x16345785d8a0000", "16345785d8a0000"}, diff --git a/types/tx.go b/types/tx.go index a87e4e1..e4cbd9b 100644 --- a/types/tx.go +++ b/types/tx.go @@ -222,7 +222,7 @@ func (t *Transfer) GetAsset() coin.AssetID { func (t *Transfer) Validate() error { if t.Value == "" { - return fmt.Errorf("emtpy transfer value") + return fmt.Errorf("empty transfer value") } if t.Asset == "" {