Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Add missing defaults for shimBytecode
Browse files Browse the repository at this point in the history
For case where trying to shim bytecodes that are undefined
  • Loading branch information
gnidan committed Jul 26, 2019
1 parent 7fcc3fe commit 005426c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/truffle-compile/legacy/shims.js
Expand Up @@ -47,7 +47,8 @@ function shimContract(contract) {
};
}

function shimBytecode({ bytes, linkReferences }) {
function shimBytecode({ bytes, linkReferences } = {}) {
bytes = bytes || "";
linkReferences = linkReferences || [];

// inline link references - start by flattening the offsets
Expand Down

0 comments on commit 005426c

Please sign in to comment.