Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This function is restricted to the contract's owner #2

Open
Lucifer666666666 opened this issue Nov 2, 2020 · 0 comments
Open

This function is restricted to the contract's owner #2

Lucifer666666666 opened this issue Nov 2, 2020 · 0 comments

Comments

@Lucifer666666666
Copy link

I don't really know what the problem is....
But i get the same error everytime

`C:\Users\o\Desktop\Aggregated-Flashloan>truffle migrate --network ropsten --reset

Compiling your contracts...

Everything is up to date, there is nothing to compile.

Migrations dry-run (simulation)

Network name: 'ropsten-fork'
Network id: 3
Block gas limit: 8000029 (0x7a121d)

1_initial_migration.js

Replacing 'AggregatedFlashloans'

block number: 8992950
block timestamp: 1604328692
account: 0x3865FE951c10791a1A04AeC88d1063B158F75b48
balance: 2.547709980852136291
gas used: 755447 (0xb86f7)
gas price: 2 gwei
value sent: 0 ETH
total cost: 0.001510894 ETH

RuntimeError: VM Exception while processing transaction: revert This function is restricted to the contract's owner
at Migration._deploy (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:97:1)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Migration._load (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:55:1)
at Migration.run (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:171:1)
at Object.runMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
at Object.runFrom (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
at Object.runAll (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:114:1)
at Object.run (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:79:1)
at runMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:269:1)
at setupDryRunEnvironmentThenRunMigrations (C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:257:1)
at C:\Users\o\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:220:1
Truffle v5.1.49 (core: 5.1.49)
Node v12.19.0`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant