Skip to content

Commit

Permalink
[cli] Add debug statement to sender_can_set_message test (aptos-labs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hariria authored Sep 4, 2024
1 parent 0605729 commit 5d6e1ff
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module hello_blockchain::message {
use std::signer;
use std::string;
use aptos_framework::event;
#[test_only]
use std::debug;

//:!:>resource
struct MessageHolder has key {
Expand Down Expand Up @@ -47,6 +49,9 @@ module hello_blockchain::message {

#[test(account = @0x1)]
public entry fun sender_can_set_message(account: signer) acquires MessageHolder {
let msg: string::String = string::utf8(b"Running test for sender_can_set_message...");
debug::print(&msg);

let addr = signer::address_of(&account);
aptos_framework::account::create_account_for_test(addr);
set_message(account, string::utf8(b"Hello, Blockchain"));
Expand Down

0 comments on commit 5d6e1ff

Please sign in to comment.