From 85ed235d62487e75f67e5c7b9a86268ee5ad976a Mon Sep 17 00:00:00 2001 From: cdamian <17934949+cdamian@users.noreply.github.com> Date: Thu, 13 Jul 2023 12:34:59 +0300 Subject: [PATCH] events: Rename amount retrieving func --- chains/substrate/events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chains/substrate/events.go b/chains/substrate/events.go index 18839d9d0..49875b45d 100644 --- a/chains/substrate/events.go +++ b/chains/substrate/events.go @@ -51,7 +51,7 @@ func fungibleTransferHandler(eventFields map[string]any, log log15.Logger) (msg. return msg.Message{}, err } - amount, err := getAmount(eventFields) + amount, err := getU256(eventFields) if err != nil { return msg.Message{}, err } @@ -223,7 +223,7 @@ func convertToByteSlice(array []types.U8) ([]byte, error) { return res, nil } -func getAmount(eventFields map[string]any) (types.U256, error) { +func getU256(eventFields map[string]any) (types.U256, error) { for fieldName, fieldValue := range eventFields { if fieldName != "primitive_types.U256.U256" { continue