{"action":"closed","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/1576","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1576/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1576/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1576/events","html_url":"https://github.com/trufflesuite/truffle/issues/1576","id":393469133,"node_id":"MDU6SXNzdWUzOTM0NjkxMzM=","number":1576,"title":"artifacts.require() - Correct syntax?","user":{"login":"vvdhout","id":42076249,"node_id":"MDQ6VXNlcjQyMDc2MjQ5","avatar_url":"https://avatars2.githubusercontent.com/u/42076249?v=4","gravatar_id":"","url":"https://api.github.com/users/vvdhout","html_url":"https://github.com/vvdhout","followers_url":"https://api.github.com/users/vvdhout/followers","following_url":"https://api.github.com/users/vvdhout/following{/other_user}","gists_url":"https://api.github.com/users/vvdhout/gists{/gist_id}","starred_url":"https://api.github.com/users/vvdhout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvdhout/subscriptions","organizations_url":"https://api.github.com/users/vvdhout/orgs","repos_url":"https://api.github.com/users/vvdhout/repos","events_url":"https://api.github.com/users/vvdhout/events{/privacy}","received_events_url":"https://api.github.com/users/vvdhout/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-21T14:01:59Z","updated_at":"2019-01-05T01:20:27Z","closed_at":"2019-01-05T01:20:27Z","author_association":"NONE","body":"## Issue\r\n\r\nThere is a mismatch in official Truffle documentation and Truffle's MetaCoin Box and am curious to whether this is intentional or if one or the other is deprecated or preferred.\r\n\r\nMore specifically, the documentation on trufflesuite.com specifies that we should not require by using the source file name because these can contain multiple contracts and should instead use the contract name we want to deploy. MetaCoin Box, on the other hand, does provide us with require statements that do so by referring to the source code name.\r\n\r\n## Steps to Reproduce\r\n\r\n```\r\ntruffle unbox metacoin\r\ncd migrations\r\n2_deploy_contracts\r\n```\r\n\r\n![migrations](https://user-images.githubusercontent.com/42076249/50345785-86d22980-0530-11e9-8a2a-49e5d22eaa91.PNG)\r\n\r\nVersus:\r\n\r\n![artifacts](https://user-images.githubusercontent.com/42076249/50345777-7de15800-0530-11e9-9769-98e03cfe5ecc.PNG)\r\nhttps://truffleframework.com/docs/truffle/getting-started/running-migrations#migration-files \r\n\r\n## Environment\r\n\r\n* Truffle version (`truffle version`): v5.0.0\r\n* node version (`node --version`): v10.8.0\r\n* npm version (`npm --version`): 6.5.0\r\n"}}
{"actor":{"display_login":"eggplantzzz"}}