From 92916245dd2484b9f2991b8487863d97a9eceb0a Mon Sep 17 00:00:00 2001 From: zhangzhiqiang <745124335@aa.com> Date: Mon, 30 Jul 2018 18:31:44 +0800 Subject: [PATCH 1/2] Modify the bech32 prefix: cosmos--->iris --- types/account.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/account.go b/types/account.go index 92e2988f2470..9862b9fa59b4 100644 --- a/types/account.go +++ b/types/account.go @@ -18,10 +18,10 @@ const ( AddrLen = 20 // Bech32 prefixes - Bech32PrefixAccAddr = "cosmosaccaddr" - Bech32PrefixAccPub = "cosmosaccpub" - Bech32PrefixValAddr = "cosmosvaladdr" - Bech32PrefixValPub = "cosmosvalpub" + Bech32PrefixAccAddr = "irisaccaddr" + Bech32PrefixAccPub = "irisaccpub" + Bech32PrefixValAddr = "irisvaladdr" + Bech32PrefixValPub = "irisvalpub" ) //__________________________________________________________ From 7fc20dbd9c7dc377a1b62d8ebc17d24219024146 Mon Sep 17 00:00:00 2001 From: zhangzhiqiang <745124335@aa.com> Date: Tue, 31 Jul 2018 09:35:14 +0800 Subject: [PATCH 2/2] Modify the bech32 prefix: Bech32PrefixAccAddr = "faa" Bech32PrefixAccPub = "fap" Bech32PrefixValAddr = "fva" Bech32PrefixValPub = "fvp" --- types/account.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/types/account.go b/types/account.go index 9862b9fa59b4..44a63642910f 100644 --- a/types/account.go +++ b/types/account.go @@ -17,11 +17,14 @@ const ( // expected address length AddrLen = 20 + //////////////////// iris/cosmos-sdk begin /////////////////////////// // Bech32 prefixes - Bech32PrefixAccAddr = "irisaccaddr" - Bech32PrefixAccPub = "irisaccpub" - Bech32PrefixValAddr = "irisvaladdr" - Bech32PrefixValPub = "irisvalpub" + Bech32PrefixAccAddr = "faa" + Bech32PrefixAccPub = "fap" + Bech32PrefixValAddr = "fva" + Bech32PrefixValPub = "fvp" + + //////////////////// iris/cosmos-sdk end /////////////////////////// ) //__________________________________________________________