Duplicate definition of Transfer

Đang mở
#182 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@andrejrakic đang làm issue này rồi.

Từ ngày 1/4/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Hello,

I have the following error when I try to transfer amount to my local contract :

npx hardhat test npx hardhat node npx hardhat transfer-link --recipient 0xa16E02E87b7454126E5E10d957A927A7F5B5d2be --amount 1000 --network localhost

Duplicate definition of Transfer (Transfer(address,address,uint256,bytes), Transfer(address,address,uint256))
An unexpected error occurred:

Error: invalid contract address or ENS name (argument="addressOrName", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.7.0)
at Logger.makeError (location/hardhat-starter-kit/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (location/hardhat-starter-kit/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at Logger.throwArgumentError (location/hardhat-starter-kit/node_modules/@ethersproject/logger/src.ts/index.ts:285:21)
at Contract.BaseContract (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/src.ts/index.ts:712:20)
at new Contract (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/lib/index.js:1053:42)
at Function.ContractFactory.getContract (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/src.ts/index.ts:1297:16)
at ContractFactory.attach (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/src.ts/index.ts:1260:42)
at SimpleTaskDefinition.action (location/hardhat-starter-kit/tasks/transfer-link.js:21:51)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Environment._runTaskDefinition (location/hardhat-starter-kit/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14) {
reason: 'invalid contract address or ENS name',
code: 'INVALID_ARGUMENT',
argument: 'addressOrName',
value: undefined
}

And of course, later there is an error when I try to generate a random number with direct funding. I just add it because I don't know how to extract the error from it

npx hardhat request-random-number-direct-funding --callbackgaslimit 400000 --requestconfirmations 1 --numwords 1 --contract 0xa16E02E87b7454126E5E10d957A927A7F5B5d2be --network localhost
Requesting a random number using VRF consumer contract 0xa16E02E87b7454126E5E10d957A927A7F5B5d2be on network localhost
An unexpected error occurred:

Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="lastRequestId()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)
at Logger.makeError (location/hardhat-starter-kit/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (location/hardhat-starter-kit/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at Interface.decodeFunctionResult (location/hardhat-starter-kit/node_modules/@ethersproject/abi/src.ts/interface.ts:427:23)
at Contract. (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/src.ts/index.ts:400:44)
at step (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/lib/index.js:48:23)
at Object.next (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/lib/index.js:29:53)
at fulfilled (location/hardhat-starter-kit/node_modules/@ethersproject/contracts/lib/index.js:20:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: null,
code: 'CALL_EXCEPTION',
method: 'lastRequestId()',
data: '0x',
errorArgs: null,
errorName: null,
errorSignature: null,
address: '0xa16E02E87b7454126E5E10d957A927A7F5B5d2be',
args: [],
transaction: {
data: '0xfc2a88c3',
to: '0xa16E02E87b7454126E5E10d957A927A7F5B5d2be',
from: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
}
}

Ngôn ngữ chính
JavaScript
Star
1.3k
Fork
510
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của smartcontractkit/hardhat-starter-kit

Tất cả issue của smartcontractkit/hardhat-starter-kit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.