Skip to content

Commit

Permalink
chore: Fix scripts and spelling (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aursen authored Jun 2, 2024
1 parent 17edc29 commit 1df0651
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 1df0651

Please sign in to comment.