wormhole-foundation / wormhole-scaffolding

Starter apps with Wormhole integration
Other
47 stars 30 forks source link

Unable to compile the NFT bridging on solana #60

Open kamalbuilds opened 1 year ago

kamalbuilds commented 1 year ago

Description and context

Unable to build and run this program.

https://github.com/wormhole-foundation/wormhole-scaffolding/tree/main/solana/programs/03_nft_burn_bridging

WhatsApp Image 2023-07-29 at 21 31 28

My solana version

solana-cli 1.14.19 (src:5704dd6e; feat:1879391783)

anchor-cli 0.27.0

Steps to reproduce

  1. cd solana/programs/03_nft_burn_bridging
  2. anchor build

Experienced behavior

The build would fail.

Expected behavior

Build should complete

Solution recommendation

kamalbuilds commented 1 year ago

@barnjamin @a5-pickle can you please help ?

barnjamin commented 1 year ago

Hi @kamalbuilds, can you please fill out some of the context like steps to reproduce and also include the versions of anchor/solana/rust

kamalbuilds commented 1 year ago

sure @barnjamin please take a look now

barnjamin commented 1 year ago

anchor build is not the cmd you should be running, you should use the make file to build/test the programs.

eg

make test

https://github.com/wormhole-foundation/wormhole-scaffolding/tree/main/solana#tests

barnjamin commented 1 year ago

I also filed https://github.com/wormhole-foundation/wormhole-scaffolding/pull/61 to up the anchor version which may be what is causing some of those errors