Turbin3 / poseidon

A Transpiler to convert your Solana programs from Typescript to Anchor
https://turbin3.github.io/poseidon/
49 stars 19 forks source link

No support for the msg!() macro #4

Open adpthegreat opened 3 weeks ago

adpthegreat commented 3 weeks ago

When writing anchor or native solana programs we can use the msg!() macro to print a message to the log, is there a way to do this with typescript in poseidon currently ? because it seems like there is no support for it

Code Example

#![allow(clippy::result_large_err)]

use anchor_lang::prelude::*;

declare_id!("111111111111111111111111111111111111111");

#[program]
pub mod hello_solana {
    use super::*;

    pub fn hello(_ctx: Context<Hello>) -> Result<()> {
        msg!("Hello, Solana!");

        msg!("Our program's Program ID: {}", &id());

        Ok(())
    }
}

#[derive(Accounts)]
pub struct Hello {}
kevweng commented 3 weeks ago

I'm running into the same issue.

Ahmad940 commented 3 weeks ago

I'm running into the same issue.

Same