You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use a bump as a signer. When trying to recreate the issue with the minimum reproducible code, I noticed that this program that I would expect to compile, wouldn't
Source code:
# bugreport# Built with Seahorse v0.2.5fromseahorse.preludeimport*declare_id("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS")
classProtocol:
bump: u8@instructiondefinit_protocol(signer: Signer, protocol: Empty[Protocol]) ->Program:
protocol=protocol.init(payer=signer, seeds=["protocol"])
protocol.bump=u8(0)
Error message on seahorse build
seahorse build
⠋ Compiling bugreport...thread 'main' panicked at 'explicit panic', src/core/compile/build/mod.rs:248:18
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
⠙ Compiling bugreport...%
The text was updated successfully, but these errors were encountered:
Hi, sorry for missing this! This isn't a compiler bug, but there is an unreported reason behind the error. You need to make Protocol inherit from Account:
I was trying to use a bump as a signer. When trying to recreate the issue with the minimum reproducible code, I noticed that this program that I would expect to compile, wouldn't
Source code:
Error message on seahorse build
seahorse build
⠋ Compiling bugreport...thread 'main' panicked at 'explicit panic', src/core/compile/build/mod.rs:248:18
note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace⠙ Compiling bugreport...%
The text was updated successfully, but these errors were encountered: