Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update versions (firehose) #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blockchain/addressGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewAddressGenerator(coordinator *shardCoordinator) (*addressGenerator, erro
NFTStorageHandler: &disabled.SimpleESDTNFTStorageHandler{},
EpochNotifier: &disabled.EpochNotifier{},
GlobalSettingsHandler: &disabled.GlobalSettingsHandler{},
EnableEpochsHandler: &disabled.EnableEpochsHandler{},
EnableEpochsHandler: &disabled.EnableEpochsHandlerStub{},
GasSchedule: &disabled.GasScheduleNotifier{},
Counter: &disabled.BlockChainHookCounter{},
}
Expand Down
3 changes: 2 additions & 1 deletion core/variables.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package core

import (
"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-core-go/core/pubkeyConverter"
logger "github.com/multiversx/mx-chain-logger-go"
)

var log = logger.GetOrCreate("mx-sdk-go/core")

// AddressPublicKeyConverter represents the default address public key converter
var AddressPublicKeyConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(AddressBytesLen, log)
var AddressPublicKeyConverter, _ = pubkeyConverter.NewBech32PubkeyConverter(AddressBytesLen, core.DefaultAddressPrefix)
9 changes: 7 additions & 2 deletions data/address.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
package data

import "github.com/multiversx/mx-sdk-go/core"
import (
logger "github.com/multiversx/mx-chain-logger-go"
"github.com/multiversx/mx-sdk-go/core"
)

var log = logger.GetOrCreate("address")

type address struct {
bytes []byte
Expand Down Expand Up @@ -30,7 +35,7 @@ func NewAddressFromBech32String(bech32 string) (*address, error) {

// AddressAsBech32String returns the address as a bech32 string
func (a *address) AddressAsBech32String() string {
return core.AddressPublicKeyConverter.Encode(a.bytes)
return core.AddressPublicKeyConverter.SilentEncode(a.bytes, log)
}

// AddressBytes returns the raw address' bytes
Expand Down
Loading