我使用 ganache-cli 构建本地区块链,使用 truffle 部署合约。为了与已部署的合约进行交互,我使用 truffle 控制台。例如,我将代币从我的当前帐户(即web3.eth.personal.getAccounts()[0])转移到web3.eth.personal.getAccounts()[1]此后,我想将我的当前帐户更改为web3.eth.personal.getAccounts()[1]地址。
怎么做?
Jitpack 使用此日志构建我的项目。正如您所看到的,有一个错误:“错误:未找到构建工件”。
我做错了什么?
这是我的 gradle.build:
plugins {
id 'java'
id 'maven-publish'
}
group 'com.github.azzztec'
version '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion = "7.0.2"
distributionType = Wrapper.DistributionType.ALL
}
Run Code Online (Sandbox Code Playgroud)