Skip to content

Commit

Permalink
Sync code with the latest XDR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jun 27, 2023
1 parent 3801b5c commit e35d288
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/preflight/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
8 changes: 4 additions & 4 deletions cmd/soroban-rpc/internal/test/get_ledger_entries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/get_ledger_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/simulate_transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
Expand Down

0 comments on commit e35d288

Please sign in to comment.