Skip to content
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

chore: Fix scripts and spelling #31

Merged
merged 1 commit into from
Jun 2, 2024
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
4 changes: 2 additions & 2 deletions plugin/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ impl TryFrom<&mut ReplicaAccountInfo<'_>> for AccountUpdateEvent {
});
}

// If the account belongs to the thread v2 program, parse it.
// If the account belongs to the thread v1 program, parse it.
if owner_pubkey.eq(&sablier_thread_program::ID) && account_info.data.len() > 8 {
let d = &account_info.data[..8];
if d.eq(&Thread::discriminator()) {
return Ok(AccountUpdateEvent::Thread {
thread: VersionedThread::V1(
Thread::try_deserialize(&mut account_info.data).map_err(|_| {
GeyserPluginError::AccountsUpdateError {
msg: "Failed to parse Sablier thread v2 account".into(),
msg: "Failed to parse Sablier thread v1 account".into(),
}
})?,
),
Expand Down
8 changes: 4 additions & 4 deletions scripts/cargo-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# Publish shared libs
cargo publish -p sablier-cron
sleep 25
cargo publish -p sablier-macros
sleep 25
cargo publish -p sablier-utils
sleep 25
cargo publish -p sablier-relayer-api
sleep 25
cargo publish -p sablier-plugin-utils
sleep 25

# Publish programs
cargo publish -p sablier-network-program
Expand All @@ -22,6 +24,4 @@ sleep 25

# Publish downstream bins and libs
# These are most likely to fail due to Anchor dependency issues.
cargo publish -p sablier-client
sleep 25
cargo publish -p sablier-cli
2 changes: 1 addition & 1 deletion scripts/ci/rust-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if [[ -n $RUST_STABLE_VERSION ]]; then
stable_version="$RUST_STABLE_VERSION"
else
stable_version=1.60.0
stable_version=1.76.0
fi

if [[ -n $RUST_NIGHTLY_VERSION ]]; then
Expand Down