This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
oz compile
with nothing to compile overwrites typechain artifacts
#1529
Labels
Comments
We have been able to reproduce this issue by following these steps: Setup the project
node v10.19.0 Initialize CLI with typechain
Create a contract Box.sol// contracts/Box.sol
// https://docs.openzeppelin.com/learn/developing-smart-contracts#setting-up-a-solidity-project
pragma solidity ^0.5.0;
contract Box {
uint256 private value;
// Emitted when the stored value changes
event ValueChanged(uint256 newValue);
// Stores a new value in the contract
function store(uint256 newValue) public {
value = newValue;
emit ValueChanged(newValue);
}
// Reads the last stored value
function retrieve() public view returns (uint256) {
return value;
}
} Compile
index.d.ts/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
/// <reference types="truffle-typings" />
import { BigNumber } from "bignumber.js";
export interface BoxContract extends Truffle.Contract<BoxInstance> {
"new"(meta?: Truffle.TransactionDetails): Promise<BoxInstance>;
}
export interface BoxInstance extends Truffle.ContractInstance {
retrieve(txDetails?: Truffle.TransactionDetails): Promise<BigNumber>;
store: {
(
newValue: number | BigNumber | string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse>;
call(
newValue: number | BigNumber | string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
newValue: number | BigNumber | string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
newValue: number | BigNumber | string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
} merge.d.ts/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
/// <reference types="truffle-typings" />
import * as TruffleContracts from ".";
declare global {
namespace Truffle {
interface Artifacts {
require(name: "Box"): TruffleContracts.BoxContract;
}
}
} Compile with nothing to compile
index.d.ts/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
/// <reference types="truffle-typings" />
import { BigNumber } from "bignumber.js"; merge.d.ts/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
/// <reference types="truffle-typings" />
import * as TruffleContracts from ".";
declare global {
namespace Truffle {
interface Artifacts {}
}
} compile verbose
The project owner will review and triage this issue during the next week. In the meantime, you can try the following workaround: Remove the
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reported in Telegram by Anatol
The text was updated successfully, but these errors were encountered: