From 0cf8edf91de0b64a687113b290848e39b9ea9cc0 Mon Sep 17 00:00:00 2001 From: Lutty Date: Sun, 20 Feb 2022 15:00:33 +0800 Subject: [PATCH] fix bug --- rosetta/services/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosetta/services/account.go b/rosetta/services/account.go index 365fecaa7..0cbd6afeb 100644 --- a/rosetta/services/account.go +++ b/rosetta/services/account.go @@ -164,7 +164,7 @@ func newAccountIdentifier( // newAccountIdentifier .. func newRosettaAccountIdentifier(address *vm.RosettaLogAddressItem) (*types.AccountIdentifier, *types.Error) { - if address.Account == nil { + if address == nil || address.Account == nil { return nil, nil }