Fix a bug when TruffleArtifactAdapter wasn't correctly parsing solc config in the pre 5.0 version of trufle
This commit is contained in:
parent
13ee8686bb
commit
77ad8e1a80
@ -1,4 +1,13 @@
|
||||
[
|
||||
{
|
||||
"version": "6.0.7",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Fix a bug when `TruffleArtifactAdapter` wasn't correctly parsing solc config in the pre 5.0 version of trufle",
|
||||
"pr": "todo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "6.0.6",
|
||||
"changes": [
|
||||
|
@ -83,7 +83,7 @@ export class TruffleArtifactAdapter extends AbstractArtifactAdapter {
|
||||
const truffleConfig = this._getTruffleConfig();
|
||||
if (!_.isUndefined(truffleConfig.solc)) {
|
||||
// Truffle < 5.0
|
||||
return (truffleConfig as any).solc.settings;
|
||||
return (truffleConfig as any).solc;
|
||||
} else if (!_.isUndefined((truffleConfig as any).compilers.solc)) {
|
||||
// Truffle >= 5.0
|
||||
return (truffleConfig as any).compilers.solc.settings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user