简体   繁体   中英

Add simple line “Pubkey::new_unique()” breaks my Solana Program

有谁知道为什么在https://github.com/solana-labs/example-helloworld/blob/master/src/program-rust/src/lib.rs# 中引入像“Pubkey::new_unique()”这样的简单行吗? L22会使程序失败吗?

The implementation of that function uses global data. Programs cannot use global data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM