-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimal set of changes to add GSN support to the contract and the dApp so that calling user no longer needs eth. Actual payment is done by the default "accept everything" paymaster contract.
- Loading branch information
1 parent
c7c9e8b
commit 76025e5
Showing
7 changed files
with
4,933 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
const CaptureTheFlag = artifacts.require('CaptureTheFlag') | ||
|
||
module.exports = async function (deployer) { | ||
await deployer.deploy(CaptureTheFlag) | ||
const forwarder = require('../build/gsn/Forwarder').address | ||
await deployer.deploy(CaptureTheFlag, forwarder) | ||
|
||
console.log(`Deployed CTF at ${CaptureTheFlag.address} with forwarder ${forwarder}`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.