diff --git a/cmd/soroban-rpc/internal/preflight/preflight.go b/cmd/soroban-rpc/internal/preflight/preflight.go index 1c565eea..7f22ca15 100644 --- a/cmd/soroban-rpc/internal/preflight/preflight.go +++ b/cmd/soroban-rpc/internal/preflight/preflight.go @@ -152,7 +152,7 @@ func GetPreflight(ctx context.Context, params PreflightParameters) (Preflight, e if hasConfig { setting := stateExpirationConfig.Data.MustConfigSetting().MustStateExpirationSettings() minTempEntryExpiration = uint32(setting.MinTempEntryExpiration) - minPersistentEntryExpiration = uint32(setting.MinRestorableEntryExpiration) + minPersistentEntryExpiration = uint32(setting.MinPersistentEntryExpiration) } li := C.CLedgerInfo{ diff --git a/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go b/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go index 41a67faf..bcbea3c3 100644 --- a/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go +++ b/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go @@ -38,8 +38,8 @@ func TestGetLedgerEntriesNotFound(t *testing.T) { Key: xdr.ScVal{ Type: xdr.ScValTypeScvLedgerKeyContractInstance, }, - Type: xdr.ContractDataTypePersistent, - LeType: xdr.ContractLedgerEntryTypeDataEntry, + Durability: xdr.ContractDataDurabilityPersistent, + BodyType: xdr.ContractEntryBodyTypeDataEntry, }, }) require.NoError(t, err) @@ -135,8 +135,8 @@ func TestGetLedgerEntriesSucceeds(t *testing.T) { Key: xdr.ScVal{ Type: xdr.ScValTypeScvLedgerKeyContractInstance, }, - Type: xdr.ContractDataTypePersistent, - LeType: xdr.ContractLedgerEntryTypeDataEntry, + Durability: xdr.ContractDataDurabilityPersistent, + BodyType: xdr.ContractEntryBodyTypeDataEntry, }, }) require.NoError(t, err) diff --git a/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go b/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go index dc66059d..dccda889 100644 --- a/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go +++ b/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go @@ -38,8 +38,8 @@ func TestGetLedgerEntryNotFound(t *testing.T) { Key: xdr.ScVal{ Type: xdr.ScValTypeScvLedgerKeyContractInstance, }, - Type: xdr.ContractDataTypePersistent, - LeType: xdr.ContractLedgerEntryTypeDataEntry, + Durability: xdr.ContractDataDurabilityPersistent, + BodyType: xdr.ContractEntryBodyTypeDataEntry, }, }) require.NoError(t, err) diff --git a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go index 690c006a..25fdd9ef 100644 --- a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go +++ b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go @@ -223,8 +223,8 @@ func TestSimulateTransactionSucceeds(t *testing.T) { { Type: xdr.LedgerEntryTypeContractCode, ContractCode: &xdr.LedgerKeyContractCode{ - Hash: xdr.Hash(testContractId), - LeType: xdr.ContractLedgerEntryTypeDataEntry, + Hash: xdr.Hash(testContractId), + BodyType: xdr.ContractEntryBodyTypeDataEntry, }, }, },