Skip to content

Commit c451ac0

Browse files
fix(account show): propagate derived eth address
1 parent 2bcd0ad commit c451ac0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cmd/account/show/show.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ var (
9090

9191
nativeAddr, ethAddr, err := common.ResolveLocalAccountOrAddress(npa.Network, targetAddress)
9292
cobra.CheckErr(err)
93-
out.EthereumAddress = ethAddr
9493
out.NativeAddress = nativeAddr
9594
out.Name = common.FindAccountNameForNetwork(npa.Network, nativeAddr.String())
9695

@@ -116,6 +115,9 @@ var (
116115
}
117116
}
118117

118+
// Ensure output reflects the final resolved/derived Ethereum address (if any).
119+
out.EthereumAddress = ethAddr
120+
119121
height, err := common.GetActualHeight(
120122
ctx,
121123
c.Consensus().Core(),

0 commit comments

Comments
 (0)