Skip to content

Commit b06f49b

Browse files
Bump github.com/hiero-ledger/hiero-sdk-go/v2 from 2.64.0 to 2.65.0 in /rosetta (#11487)
* Bump github.com/hiero-ledger/hiero-sdk-go/v2 in /rosetta Bumps [github.com/hiero-ledger/hiero-sdk-go/v2](https://github.com/hiero-ledger/hiero-sdk-go) from 2.64.0 to 2.65.0. - [Release notes](https://github.com/hiero-ledger/hiero-sdk-go/releases) - [Changelog](https://github.com/hiero-ledger/hiero-sdk-go/blob/main/CHANGELOG.md) - [Commits](hiero-ledger/hiero-sdk-go@v2.64.0...v2.65.0) --- updated-dependencies: - dependency-name: github.com/hiero-ledger/hiero-sdk-go/v2 dependency-version: 2.65.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Xin Li <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xin Li <[email protected]>
1 parent 15af6bf commit b06f49b

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

rosetta/app/services/construction_service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ func NewConstructionAPIService(
603603
}
604604

605605
if len(config.Rosetta.Nodes) > 0 {
606-
sdkClient = hiero.ClientForNetwork(config.Rosetta.Nodes)
606+
sdkClient, err = hiero.ClientForNetworkV2(config.Rosetta.Nodes)
607607
} else {
608608
if baseService.IsOnline() {
609609
sdkClient, err = hiero.ClientForName(network)
@@ -613,10 +613,10 @@ func NewConstructionAPIService(
613613
clientConfig := []byte(fmt.Sprintf("{\"network\": \"%s\"}", network))
614614
sdkClient, err = hiero.ClientFromConfig(clientConfig)
615615
}
616+
}
616617

617-
if err != nil {
618-
return nil, err
619-
}
618+
if err != nil {
619+
return nil, err
620620
}
621621

622622
if baseService.IsOnline() && len(config.Rosetta.Nodes) == 0 {

rosetta/app/services/construction_service_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,16 @@ func TestNewConstructionAPIServiceThrowsWithUnrecognizedNetwork(t *testing.T) {
13771377
assert.Nil(t, client)
13781378
}
13791379

1380+
func TestNewConstructionAPIServiceThrowsWithMixedShardAndRealm(t *testing.T) {
1381+
nodes := config.NodeMap{
1382+
"10.0.0.1:50211": hiero.AccountID{Account: 3, Realm: 1},
1383+
"10.0.0.2:50211": hiero.AccountID{Account: 4, Realm: 2, Shard: 1},
1384+
}
1385+
client, err := NewConstructionAPIService(nil, onlineBaseService, &config.Mirror{Rosetta: config.Config{Nodes: nodes}}, nil)
1386+
assert.Error(t, err)
1387+
assert.Nil(t, client)
1388+
}
1389+
13801390
func TestUnmarshallTransactionFromHexString(t *testing.T) {
13811391
for _, signed := range []bool{false, true} {
13821392
transactions := []hiero.TransactionInterface{

rosetta/go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/go-playground/validator/v10 v10.26.0
1111
github.com/go-viper/mapstructure/v2 v2.3.0
1212
github.com/hellofresh/health-go/v4 v4.7.0
13-
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0
13+
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0
1414
github.com/jackc/pgtype v1.14.4
1515
github.com/lib/pq v1.10.9
1616
github.com/onrik/gorm-logrus v0.5.0
@@ -100,7 +100,6 @@ require (
100100
github.com/spf13/cast v1.7.1 // indirect
101101
github.com/stretchr/objx v0.5.2 // indirect
102102
github.com/subosito/gotenv v1.6.0 // indirect
103-
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
104103
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
105104
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
106105
github.com/weaveworks/promrus v1.2.0 // indirect

rosetta/go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuW
673673
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
674674
github.com/hellofresh/health-go/v4 v4.7.0 h1:D+0gCkG9oEpUewIkIKxTmalxkM+0QoRDfJelJrG3sFU=
675675
github.com/hellofresh/health-go/v4 v4.7.0/go.mod h1:XyFAB5J9wAUq7PGN3om2g68bNyWIqKIrMytAT8IMJ4Y=
676-
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0 h1:KxH02Hd44C0eWF3DhmHc2UmFALC9pr7kY7njwSp1L/E=
677-
github.com/hiero-ledger/hiero-sdk-go/v2 v2.64.0/go.mod h1:tHOo+ShUZf2OAs2ZjvBmf3dTiLKa6K+A1cBZNnfeor8=
676+
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0 h1:pHMEqSBDMN4pZALMCu5/UtcgZWOmAMR/uNfhA1xGV78=
677+
github.com/hiero-ledger/hiero-sdk-go/v2 v2.65.0/go.mod h1:PzTf/HdfpXaSgbR3tGIyJysxMH8zvz+BkNelaleGE/U=
678678
github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
679679
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
680680
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
@@ -939,8 +939,6 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
939939
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
940940
github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o=
941941
github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U=
942-
github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8=
943-
github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U=
944942
github.com/uber/jaeger-client-go v2.28.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
945943
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
946944
github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=

web3/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616

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

2222
dependencies {

0 commit comments

Comments
 (0)