Skip to content

Commit

Permalink
update the deprecated signatures method (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShuk authored Nov 15, 2024
1 parent 1b74393 commit a57c74d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/explorer/inspectorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function InspectorButton({
inspectUrl = await getExplorerInspectorUrl(connection, result.transaction)
} else {
try {
const recentActivity = await connection.current.getConfirmedSignaturesForAddress2(
const recentActivity = await connection.current.getSignaturesForAddress(
proposalInstruction.pubkey,
{
limit: 5,
Expand Down
2 changes: 1 addition & 1 deletion hooks/useAccountActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function getInfo(
}

return connection
.getConfirmedSignaturesForAddress2(
.getSignaturesForAddress(
new PublicKey(address),
{
limit: 10,
Expand Down
2 changes: 1 addition & 1 deletion stores/useTreasuryAccountStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const useTreasuryAccountStore = create<TreasuryAccountStore>((set, _get) => ({
let recentActivity = []
const address = account.extensions.transferAddress
try {
recentActivity = await connection.current.getConfirmedSignaturesForAddress2(
recentActivity = await connection.current.getSignaturesForAddress(
address,
{
limit: 5,
Expand Down

0 comments on commit a57c74d

Please sign in to comment.