我正在尝试运行HelloWorld solana程序。我克隆了回购。我是从
solana-test-validator
我运行了npm install,然后就能够用
npm run build:program-rust
我可以在目录.so中看到/dist/program/helloworld.so文件。当我试图将程序部署到solana时,我运行
solana program deploy dist/program/helloworld.so
这是我所犯的错误
Error: Dynamic program error: No such file or directory (os error 2)
我尝试构建一个Rust项目,当我试图在VS代码终端上执行cargo build-bpf --manifest-path=contracts/solana/program/Cargo.toml --bpf-out-dir=dist/solana/program时,我得到了一个错误:Can't get home directory path: environment variable not found。对如何解决它有什么想法吗?我不知道需要多少细节来理解这个问题(我是Rust的新手),但是如果你问我,我可以添加更多的细节。
我正在尝试在本地运行Solana rust hello world example (https://github.com/solana-labs/example-helloworld)。我阅读了自述文件,但“启动本地Solana集群”(https://github.com/solana-labs/example-helloworld#start-local-solana-cluster)这一步对我不起作用。我收到thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code:
我目前正在学习使用rust进行Solana开发。我学习了hello-world教程,想知道运行solana deploy和solana program deploy有什么不同。 我使用Solana Devnet集群对两者都进行了测试。 Result of running solana deploy。 Result of running solana program deploy。 我的直觉告诉我,solana deploy正在创建一个简单的Solana帐户,而另一个是创建一个Program帐户。如果不能调用一个事务,那么使用程序创建一个简单的Solana帐户有什么意义?
我正在尝试使用Rust获取Solana事务状态。您可以使用explorer.solana.com获取事务状态,但我希望通过代码获得它。
在Rust : get_signature_status中有函数
上面的函数期望有一个签名对象:
所以我试着用它:
let sig_s = String::from("...");
let sig: Signature = Signature(sig_s.as_bytes());
let stat = self.client.get_signature_status(&sig);
println!("{:?}", sta
我尝试使用javascript链码运行fabcar示例,实例化链码时失败,出现以下错误
error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EA
我正试图将一些程序部署到我的本地solana,并且我坚持了这一点。
-vote-tutorial
> babel-node src/client/deploy_simplest.js
Deploying...
(node:11063) Warning: N-API is an experimental feature and could change at any time.
Our account: Bfoj2PiwU4qvgHbdiQ7AysM4jKVQD73NF9GdwqMs7yzw
Connection to cluster established: http://lo
假设我有一个具有一系列函数和修饰符的令牌智能合约,以及另一个众销智能合约。在我的众销智能合约中引用令牌智能合约允许我调用令牌函数。然而..。我不能使用令牌智能合约中的修饰符。 contract Crowdsale is Token {
token private _token;
constructor (ERC20 token) public {
require(address(token) != address(0));
_token = token;
}
// this one works
function test
我正在尝试使用一个脚本,它使用web3.js来传输特定数量的ERC20令牌,.I以这样的方式使此脚本,如果帐户没有以太值,它将一次又一次尝试,直到它得到以太支付天然气。我运行这个脚本,在运行期间,我在主机上得到了这个错误。虽然它在rinkbey和ropsten上运行良好,但不能在主机上运行。I get error in the method web3.eth.estimateGas完整的脚本方法如下
async function transfer() {
var address = document.getElementById("address").value;
va
我想爬行ETH区块链,并获取与给定钱包地址之间进行的交易。我在web3.py的帮助下写了一段代码,但我得到了一些奇怪的结果。我正在查找事务,但事务的值是0。那件事怎么可能?我知道钱包地址和智能合约地址之间有区别,但我找不到如何区分它们。另外,如何抓取事务中的ERC20令牌数量?
from web3 import Web3
from datetime import datetime
# Defining url for collecting ETH transactions
infura_url = "https://mainnet.infura.io/v3/xxxxxxxxxxxx&
我正试图建立我的锈菌箱作为静态库,以芙蓉使用它在Golang通过FFI。到目前为止,已经尝试过关于链接的不同方法,但是仍然存在来自最终go二进制的undefined reference类错误:
/usr/bin/ld: ./lib/libsolana_mint.a(nix-6da6fd938c826d01.nix.e161731d-cgu.5.rcgu.o): in function `nix::mqueue::mq_open':
nix.e161731d-cgu.5:(.text._ZN3nix6mqueue7mq_open17hd889faf637ea61f3E+0xd):