File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 88 EthereumPrivateKeySignatureProvider,
99 } = require ( "@requestnetwork/epk-signature" ) ;
1010 const { config } = require ( "dotenv" ) ;
11+ const { Wallet } = require ( "ethers" ) ;
1112
1213 // Load environment variables from .env file
1314 config ( ) ;
2526 } ) ;
2627
2728 // In this example, the payee is also the payer and payment recipient.
28- const payeeIdentity = "0x7eB023BFbAeE228de6DC5B92D0BeEB1eDb1Fd567" ;
29+ const payeeIdentity = new Wallet ( process . env . PAYEE_PRIVATE_KEY ) . address ;
2930 const payerIdentity = payeeIdentity ;
3031 const paymentRecipient = payeeIdentity ;
3132 const feeRecipient = "0x0000000000000000000000000000000000000000" ;
Original file line number Diff line number Diff line change 1515 } = require ( "@requestnetwork/payment-processor" ) ;
1616 const { providers, Wallet } = require ( "ethers" ) ;
1717 const { config } = require ( "dotenv" ) ;
18+ const { Wallet } = require ( "ethers" ) ;
1819
1920 // Load environment variables from .env file
2021 config ( ) ;
3132 signatureProvider : epkSignatureProvider ,
3233 } ) ;
3334
34- const payeeIdentity = "0x7eB023BFbAeE228de6DC5B92D0BeEB1eDb1Fd567" ;
35+ const payeeIdentity = new Wallet ( process . env . PAYEE_PRIVATE_KEY ) . address ;
3536 const payerIdentity = payeeIdentity ;
3637 const paymentRecipient = payeeIdentity ;
3738 const feeRecipient = "0x0000000000000000000000000000000000000000" ;
You can’t perform that action at this time.
0 commit comments