Skip to content

Commit c0d09d8

Browse files
committed
fix(lazer/sui): lock down ctors
1 parent adf8207 commit c0d09d8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lazer/contracts/sui/sources/feed.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct Feed has copy, drop {
3434
}
3535

3636
/// Create a new Feed with the specified parameters
37-
public fun new(
37+
public(package) fun new(
3838
feed_id: u32,
3939
price: Option<Option<I64>>,
4040
best_bid_price: Option<Option<I64>>,

lazer/contracts/sui/sources/update.move

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ module pyth_lazer::update;
33
use pyth_lazer::channel::Channel;
44
use pyth_lazer::feed::Feed;
55

6-
// public struct UpdateObject has key, store {
7-
// id: UID,
8-
// update: Update
9-
// }
10-
116
public struct Update has copy, drop {
127
timestamp: u64,
138
channel: Channel,
149
feeds: vector<Feed>,
1510
}
1611

17-
public fun new(
12+
public(package) fun new(
1813
timestamp: u64,
1914
channel: Channel,
2015
feeds: vector<Feed>

0 commit comments

Comments
 (0)