Skip to content

Updated Burry-escrow with fixes#1

Open
adpthegreat wants to merge 1 commit into
solana-developers:mainfrom
adpthegreat:main
Open

Updated Burry-escrow with fixes#1
adpthegreat wants to merge 1 commit into
solana-developers:mainfrom
adpthegreat:main

Conversation

@adpthegreat

@adpthegreat adpthegreat commented Sep 12, 2024

Copy link
Copy Markdown
  • Renamed escrow to escrow_state

  • Renamed all variables with _ix to _instruction

  • Renamed tx to transaction

  • Removed Magic Number (8) and replaced with ANCHOR_DISCRIMINATOR const

  • changed std::mem::size_of::() to Escrow::INIT_SPACE

  • Wrapped solPrice with BN

  • changed anchor.BN pro BN in test

  • Updated assertions with prices in tests to use .eq() method

  • Ran tests accordingly

Screenshot 2024-09-10 at 15 23 38

- Renamed escrow to escrow_state
- Renamed all variables with _ix to _instruction
- Renamed tx to transaction
- Removed Magic Number (8) and replaced with ANCHOR_DISCRIMINATOR const
- changed std::mem::size_of::<Escrow>() to Escrow::INIT_SPACE
- Wrapped solPrice with BN
- Updated assertions in tests to use .eq() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant