Skip to content

Bump github.com/hiero-ledger/hiero-sdk-go/v2 from 2.64.0 to 2.65.0 in /rosetta #11487

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

Merged
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
8 changes: 4 additions & 4 deletions rosetta/app/services/construction_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func NewConstructionAPIService(
}

if len(config.Rosetta.Nodes) > 0 {
sdkClient = hiero.ClientForNetwork(config.Rosetta.Nodes)
sdkClient, err = hiero.ClientForNetworkV2(config.Rosetta.Nodes)
} else {
if baseService.IsOnline() {
sdkClient, err = hiero.ClientForName(network)
Expand All @@ -613,10 +613,10 @@ func NewConstructionAPIService(
clientConfig := []byte(fmt.Sprintf("{\"network\": \"%s\"}", network))
sdkClient, err = hiero.ClientFromConfig(clientConfig)
}
}

if err != nil {
return nil, err
}
if err != nil {
return nil, err
}

if baseService.IsOnline() && len(config.Rosetta.Nodes) == 0 {
Expand Down
10 changes: 10 additions & 0 deletions rosetta/app/services/construction_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,16 @@ func TestNewConstructionAPIServiceThrowsWithUnrecognizedNetwork(t *testing.T) {
assert.Nil(t, client)
}

func TestNewConstructionAPIServiceThrowsWithMixedShardAndRealm(t *testing.T) {
nodes := config.NodeMap{
"10.0.0.1:50211": hiero.AccountID{Account: 3, Realm: 1},
"10.0.0.2:50211": hiero.AccountID{Account: 4, Realm: 2, Shard: 1},
}
client, err := NewConstructionAPIService(nil, onlineBaseService, &config.Mirror{Rosetta: config.Config{Nodes: nodes}}, nil)
assert.Error(t, err)
assert.Nil(t, client)
}

func TestUnmarshallTransactionFromHexString(t *testing.T) {
for _, signed := range []bool{false, true} {
transactions := []hiero.TransactionInterface{
Expand Down
3 changes: 1 addition & 2 deletions rosetta/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/go-playground/validator/v10 v10.26.0
github.com/go-viper/mapstructure/v2 v2.3.0
github.com/hellofresh/health-go/v4 v4.7.0
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0
github.com/jackc/pgtype v1.14.4
github.com/lib/pq v1.10.9
github.com/onrik/gorm-logrus v0.5.0
Expand Down Expand Up @@ -100,7 +100,6 @@ require (
github.com/spf13/cast v1.7.1 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/weaveworks/promrus v1.2.0 // indirect
Expand Down
6 changes: 2 additions & 4 deletions rosetta/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,8 @@ github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuW
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hellofresh/health-go/v4 v4.7.0 h1:D+0gCkG9oEpUewIkIKxTmalxkM+0QoRDfJelJrG3sFU=
github.com/hellofresh/health-go/v4 v4.7.0/go.mod h1:XyFAB5J9wAUq7PGN3om2g68bNyWIqKIrMytAT8IMJ4Y=
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0 h1:KxH02Hd44C0eWF3DhmHc2UmFALC9pr7kY7njwSp1L/E=
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0/go.mod h1:tHOo+ShUZf2OAs2ZjvBmf3dTiLKa6K+A1cBZNnfeor8=
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0 h1:pHMEqSBDMN4pZALMCu5/UtcgZWOmAMR/uNfhA1xGV78=
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0/go.mod h1:PzTf/HdfpXaSgbR3tGIyJysxMH8zvz+BkNelaleGE/U=
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
Expand Down Expand Up @@ -939,8 +939,6 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o=
github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U=
github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8=
github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U=
github.com/uber/jaeger-client-go v2.28.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
Expand Down
2 changes: 1 addition & 1 deletion web3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {

repositories {
// Temporary repository added for com.hedera.cryptography snapshot dependencies
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
maven { url = uri("https://central.sonatype.com/repository/maven-snapshots") }
}

dependencies {
Expand Down
Loading