Test log traces only show the address of the contract that called the fulfillRandomWords
function
#3223
-
Foundry Fundamentals, Section 4: Smart Contract Lottery, Lesson 39: One Big Test, Timestamp: 10:00-10:20 As the title says, my test log traces only show the address of the contract that called the I know I can console log all the caller addresses, but I just wanted to know why my case is different from Patrick's and the traces from all the other discussion questions. [⠒] Compiling...
No files changed, compilation skipped
Ran 1 test for test/unit/RaffleTest.t.sol:RaffleTest
[FAIL: InsufficientBalance()] test_FulfillRandomWords_PicksAWinner_ResetsRaffle_AndSendsMoney() (gas: 367196)
Logs:
Creating subscription on chain ID: 31337
Your subscription ID is: 7570848181127581986339189052072122886913734678723205985508750752041200654908
Please update the subscription ID in your HelperConfig.s.sol
Funding subscription: 7570848181127581986339189052072122886913734678723205985508750752041200654908
Using vrfCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316
On chain ID: 31337
Adding consumer to VRF Coordinator: 0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76
Using VRFCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316
On chain ID: 31337
Caller: 0x34A1D3fff3958843C43aD80F30b94c510645C316
Traces:
[44953160] RaffleTest::setUp()
├─ [20471188] → new DeployRaffle@0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
│ └─ ← [Return] 102050 bytes of code
├─ [24262540] DeployRaffle::deployRaffleContract()
│ ├─ [4334443] → new <unknown>@0x104fBc016F4bb334D775a19E8A6510109AC63E00
│ │ └─ ← [Return] 20761 bytes of code
│ ├─ [3688510] 0x104fBc016F4bb334D775a19E8A6510109AC63E00::getConfig()
│ │ ├─ [0] VM::startBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [2716960] → new <unknown>@0x34A1D3fff3958843C43aD80F30b94c510645C316
│ │ │ ├─ emit ConfigSet()
│ │ │ └─ ← [Return] 13219 bytes of code
│ │ ├─ [780242] → new <unknown>@0x90193C961A926261B756D1E5bb255e67ff9498A1
│ │ │ ├─ emit Transfer(from: 0x0000000000000000000000000000000000000000, to: DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38], amount: 1000000000000000000000000 [1e24])
│ │ │ └─ ← [Return] 3437 bytes of code
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Return] NetworkConfig({ raffleEntranceFee: 10000000000000000 [1e16], lotteryDurationSeconds: 30, keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, subscriptionId: 0, callbackGasLimit: 500000 [5e5], enableNativePayment: false, vrfCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316, linkTokenAddress: 0x90193C961A926261B756D1E5bb255e67ff9498A1 })
│ ├─ [4628696] → new <unknown>@0x037eDa3aDB1198021A9b2e88C22B464fD38db3f3
│ │ └─ ← [Return] 23006 bytes of code
│ ├─ [126722] 0x037eDa3aDB1198021A9b2e88C22B464fD38db3f3::callCreateSubscription(0x34A1D3fff3958843C43aD80F30b94c510645C316)
│ │ ├─ [0] console::log("Creating subscription on chain ID:", 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [120947] 0x34A1D3fff3958843C43aD80F30b94c510645C316::createSubscription()
│ │ │ ├─ emit SubscriptionCreated(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], owner: DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return] 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [0] console::log("Your subscription ID is:", 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Please update the subscription ID in your HelperConfig.s.sol") [staticcall]
│ │ │ └─ ← [Stop]
│ │ └─ ← [Return] 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], 0x34A1D3fff3958843C43aD80F30b94c510645C316
│ ├─ [4767182] → new <unknown>@0xDDc10602782af652bB913f7bdE1fD82981Db7dd9
│ │ └─ ← [Return] 23587 bytes of code
│ ├─ [48745] 0xDDc10602782af652bB913f7bdE1fD82981Db7dd9::callFundSubscription(0x34A1D3fff3958843C43aD80F30b94c510645C316, 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], 0x90193C961A926261B756D1E5bb255e67ff9498A1)
│ │ ├─ [0] console::log("Funding subscription:", 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Using vrfCoordinator:", 0x34A1D3fff3958843C43aD80F30b94c510645C316) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("On chain ID:", 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [45297] 0x34A1D3fff3958843C43aD80F30b94c510645C316::fundSubscription(7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], 10000000000000000 [1e16])
│ │ │ ├─ emit SubscriptionFunded(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], oldBalance: 0, newBalance: 10000000000000000 [1e16])
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Stop]
│ ├─ [0] VM::startBroadcast()
│ │ └─ ← [Return]
│ ├─ [897035] → new Raffle@0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76
│ │ └─ ← [Return] 4134 bytes of code
│ ├─ [0] VM::stopBroadcast()
│ │ └─ ← [Return]
│ ├─ [5516558] → new <unknown>@0x7FdB3132Ff7D02d8B9e221c61cC895ce9a4bb773
│ │ └─ ← [Return] 27439 bytes of code
│ ├─ [70746] 0x7FdB3132Ff7D02d8B9e221c61cC895ce9a4bb773::callAddConsumer(Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76], 0x34A1D3fff3958843C43aD80F30b94c510645C316, 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75])
│ │ ├─ [0] console::log("Adding consumer to VRF Coordinator:", Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Using VRFCoordinator:", 0x34A1D3fff3958843C43aD80F30b94c510645C316) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("On chain ID:", 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [67309] 0x34A1D3fff3958843C43aD80F30b94c510645C316::addConsumer(7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ │ │ ├─ emit SubscriptionConsumerAdded(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], consumer: Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Stop]
│ └─ ← [Return] Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76], 0x104fBc016F4bb334D775a19E8A6510109AC63E00
├─ [2554] 0x104fBc016F4bb334D775a19E8A6510109AC63E00::getConfig()
│ └─ ← [Return] NetworkConfig({ raffleEntranceFee: 10000000000000000 [1e16], lotteryDurationSeconds: 30, keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, subscriptionId: 0, callbackGasLimit: 500000 [5e5], enableNativePayment: false, vrfCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316, linkTokenAddress: 0x90193C961A926261B756D1E5bb255e67ff9498A1 })
├─ [0] VM::deal(Alice: [0xBf0b5A4099F0bf6c8bC4252eBeC548Bae95602Ea], 10000000000000000000 [1e19])
│ └─ ← [Return]
└─ ← [Stop]
[367196] RaffleTest::test_FulfillRandomWords_PicksAWinner_ResetsRaffle_AndSendsMoney()
├─ [0] VM::prank(Alice: [0xBf0b5A4099F0bf6c8bC4252eBeC548Bae95602Ea])
│ └─ ← [Return]
├─ [47757] Raffle::enterRaffle{value: 10000000000000000}()
│ ├─ emit NewPlayerHasEnteredRaffle(_newPlayer: Alice: [0xBf0b5A4099F0bf6c8bC4252eBeC548Bae95602Ea])
│ ├─ storage changes:
│ │ @ 5: 0 → 1
│ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0: 0 → 0x000000000000000000000000bf0b5a4099f0bf6c8bc4252ebec548bae95602ea
│ └─ ← [Stop]
├─ [0] VM::warp(32)
│ └─ ← [Return]
├─ [0] VM::roll(2)
│ └─ ← [Return]
├─ [0] VM::deal(ECRecover: [0x0000000000000000000000000000000000000001], 10000000000000000000 [1e19])
│ └─ ← [Return]
├─ [0] VM::prank(ECRecover: [0x0000000000000000000000000000000000000001])
│ └─ ← [Return]
├─ [23857] Raffle::enterRaffle{value: 10000000000000000}()
│ ├─ emit NewPlayerHasEnteredRaffle(_newPlayer: ECRecover: [0x0000000000000000000000000000000000000001])
│ ├─ storage changes:
│ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1: 0 → 1
│ │ @ 5: 1 → 2
│ └─ ← [Stop]
├─ [0] VM::deal(SHA-256: [0x0000000000000000000000000000000000000002], 10000000000000000000 [1e19])
│ └─ ← [Return]
├─ [0] VM::prank(SHA-256: [0x0000000000000000000000000000000000000002])
│ └─ ← [Return]
├─ [23857] Raffle::enterRaffle{value: 10000000000000000}()
│ ├─ emit NewPlayerHasEnteredRaffle(_newPlayer: SHA-256: [0x0000000000000000000000000000000000000002])
│ ├─ storage changes:
│ │ @ 5: 2 → 3
│ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2: 0 → 2
│ └─ ← [Stop]
├─ [0] VM::deal(RIPEMD-160: [0x0000000000000000000000000000000000000003], 10000000000000000000 [1e19])
│ └─ ← [Return]
├─ [0] VM::prank(RIPEMD-160: [0x0000000000000000000000000000000000000003])
│ └─ ← [Return]
├─ [23857] Raffle::enterRaffle{value: 10000000000000000}()
│ ├─ emit NewPlayerHasEnteredRaffle(_newPlayer: RIPEMD-160: [0x0000000000000000000000000000000000000003])
│ ├─ storage changes:
│ │ @ 5: 3 → 4
│ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3: 0 → 3
│ └─ ← [Stop]
├─ [2347] Raffle::getLastRecordedTimestamp() [staticcall]
│ └─ ← [Return] 1
├─ [0] VM::recordLogs()
│ └─ ← [Return]
├─ [143699] Raffle::performUpkeep(0x)
│ ├─ [115435] 0x34A1D3fff3958843C43aD80F30b94c510645C316::requestRandomWords(RandomWordsRequest({ keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], requestConfirmations: 3, callbackGasLimit: 500000 [5e5], numWords: 1, extraArgs: 0x92fd13380000000000000000000000000000000000000000000000000000000000000000 }))
│ │ ├─ emit RandomWordsRequested(keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, requestId: 1, preSeed: 100, subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], minimumRequestConfirmations: 3, callbackGasLimit: 500000 [5e5], numWords: 1, extraArgs: 0x92fd13380000000000000000000000000000000000000000000000000000000000000000, sender: Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ │ ├─ storage changes:
│ │ │ @ 0x8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b61: 0 → 73
│ │ │ @ 14: 1 → 2
│ │ │ @ 15: 100 → 101
│ │ │ @ 0x8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f: 0 → 0x10bcf2be64c261e434a6014656bea8260621c8940cfe977cd11416455f3a1a3c
│ │ │ @ 0x8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b60: 0 → 0x000000000000000000000000000000000000000000000000000000010007a120
│ │ │ @ 0x44d13041f75a8ca86369c259c22987eaa91cfc073aebb48fad54b0e14afd79fb: 0 → 0x92fd133800000000000000000000000000000000000000000000000000000000
│ │ └─ ← [Return] 1
│ ├─ emit RandomWordRequested(_requestId: 1)
│ ├─ storage changes:
│ │ @ 4: 0 → 0x0000000000000000000000010000000000000000000000000000000000000000
│ └─ ← [Stop]
├─ [0] VM::getRecordedLogs()
│ └─ ← [Return] [([0xeb0e3652e0f44f417695e6e90f2f42c99b65cd7169074c5a654b16b9748c3a4e, 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, 0x10bcf2be64c261e434a6014656bea8260621c8940cfe977cd11416455f3a1a3c, 0x000000000000000000000000db8cff278adccf9e9b5da745b44e754fc4ee3c76], 0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000007a120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002492fd1338000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 0x34A1D3fff3958843C43aD80F30b94c510645C316), ([0x34035302829687f51841b2858b7a87f37db58335690aec14aced0df98ad7f590, 0x0000000000000000000000000000000000000000000000000000000000000001], 0x, 0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76)]
├─ [46793] 0x34A1D3fff3958843C43aD80F30b94c510645C316::fulfillRandomWords(1, Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ ├─ [19897] Raffle::rawFulfillRandomWords(1, [78541660797044910968829902406342334108369226379826116161446442989268089806461 [7.854e76]])
│ │ ├─ [0] console::log("Caller:", 0x34A1D3fff3958843C43aD80F30b94c510645C316) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ emit RaffleWinnerPicked(_raffleWinner: ECRecover: [0x0000000000000000000000000000000000000001])
│ │ ├─ [3000] ECRecover::fallback{value: 40000000000000000}()
│ │ │ └─ ← [Return]
│ │ ├─ storage changes:
│ │ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3: 3 → 0
│ │ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0: 0x000000000000000000000000bf0b5a4099f0bf6c8bc4252ebec548bae95602ea → 0
│ │ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1: 1 → 0
│ │ │ @ 4: 0x0000000000000000000000010000000000000000000000000000000000000000 → 1
│ │ │ @ 3: 1 → 32
│ │ │ @ 5: 4 → 0
│ │ │ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2: 2 → 0
│ │ └─ ← [Stop]
│ └─ ← [Revert] InsufficientBalance()
├─ storage changes:
│ @ 0x036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3: 0 → 3
└─ ← [Revert] InsufficientBalance()
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 7.76ms (5.59ms CPU time)
Ran 1 test suite in 1.12s (7.76ms CPU time): 0 tests passed, 1 failed, 0 skipped (1 total tests)
Failing tests:
Encountered 1 failing test in test/unit/RaffleTest.t.sol:RaffleTest
[FAIL: InsufficientBalance()] test_FulfillRandomWords_PicksAWinner_ResetsRaffle_AndSendsMoney() (gas: 367196)
Encountered a total of 1 failing tests, 0 tests succeeded
TLDR: Instead of the contract name? Like in Patrick's video and the rest of the questions posted on Discussions? Screenshot from course video (Lesson 39): It's going to hinder my debugging process and I don't like that. Edit: Naturally, the test passes if I increase the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I am unsure why you are getting that address instead of the contract name, @PatrickAlphaC we could use some help here sir. |
Beta Was this translation helpful? Give feedback.
-
@ismaildawoodjee hard to say without seeing your test and deploy file. I'm asking because I can see some weird stuff going on... lots of unknown in your setup. to compare this is my setup trace: Traces:
[48533695] RaffleTest::setUp()
├─ [22159780] → new DeployRaffle@0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
│ └─ ← [Return] 110468 bytes of code
├─ [26141670] DeployRaffle::deployContract()
│ ├─ [4751816] → new HelperConfig@0x104fBc016F4bb334D775a19E8A6510109AC63E00
│ │ └─ ← [Return] 21738 bytes of code
│ ├─ [3778971] HelperConfig::getConfig()
│ │ ├─ [0] VM::startBroadcast(DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return]
│ │ ├─ [2780441] → new VRFCoordinatorV2_5Mock@0x34A1D3fff3958843C43aD80F30b94c510645C316
│ │ │ ├─ emit ConfigSet()
│ │ │ └─ ← [Return] 13536 bytes of code
│ │ ├─ [785080] → new LinkToken@0x90193C961A926261B756D1E5bb255e67ff9498A1
│ │ │ ├─ emit Transfer(from: 0x0000000000000000000000000000000000000000, to: DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38], amount: 1000000000000000000000000 [1e24])
│ │ │ └─ ← [Return] 3461 bytes of code
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Return] NetworkConfig({ entranceFee: 10000000000000000 [1e16], interval: 30, vrfCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316, keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, subscriptionId: 0, callbackGasLimit: 500000 [5e5], linkToken: 0x90193C961A926261B756D1E5bb255e67ff9498A1, account: 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38 })
│ ├─ [5052297] → new CreateSubscription@0x037eDa3aDB1198021A9b2e88C22B464fD38db3f3
│ │ └─ ← [Return] 25121 bytes of code
│ ├─ [127328] CreateSubscription::createSubscription(VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316], DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ ├─ [0] console::log("Creating subscription using vrfCoordinator: %s on chainId: %s", VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316], 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast(DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return]
│ │ ├─ [120960] VRFCoordinatorV2_5Mock::createSubscription()
│ │ │ ├─ emit SubscriptionCreated(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], owner: DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return] 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ ├─ [0] console::log("Subscription created with id: %s", 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Please update the subscriptionId in the HelperConfig contract") [staticcall]
│ │ │ └─ ← [Stop]
│ │ └─ ← [Return] 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316]
│ ├─ [5360419] → new FundSubscription@0xDDc10602782af652bB913f7bdE1fD82981Db7dd9
│ │ └─ ← [Return] 26328 bytes of code
│ ├─ [49333] FundSubscription::fundSubscription(VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316], 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], LinkToken: [0x90193C961A926261B756D1E5bb255e67ff9498A1], DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ ├─ [0] console::log("Funding subscription: ", 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Using vrfCoordinator: ", VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("On ChainID: ", 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast(DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return]
│ │ ├─ [45313] VRFCoordinatorV2_5Mock::fundSubscription(7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], 300000000000000000000 [3e20])
│ │ │ ├─ emit SubscriptionFunded(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], oldBalance: 0, newBalance: 300000000000000000000 [3e20])
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Stop]
│ ├─ [0] VM::startBroadcast(DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ └─ ← [Return]
│ ├─ [858297] → new Raffle@0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76
│ │ └─ ← [Return] 3941 bytes of code
│ ├─ [0] VM::stopBroadcast()
│ │ └─ ← [Return]
│ ├─ [5904738] → new AddConsumer@0x7FdB3132Ff7D02d8B9e221c61cC895ce9a4bb773
│ │ └─ ← [Return] 29377 bytes of code
│ ├─ [72712] AddConsumer::addConsumer(Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76], VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316], 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ ├─ [0] console::log("Adding consumer address", Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("to VRF Coordinator: ", VRFCoordinatorV2_5Mock: [0x34A1D3fff3958843C43aD80F30b94c510645C316]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("On ChainID: ", 31337 [3.133e4]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("With subscriptionId: ", 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] console::log("Using account: ", DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38]) [staticcall]
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::startBroadcast(DefaultSender: [0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38])
│ │ │ └─ ← [Return]
│ │ ├─ [67316] VRFCoordinatorV2_5Mock::addConsumer(7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ │ │ ├─ emit SubscriptionConsumerAdded(subId: 7570848181127581986339189052072122886913734678723205985508750752041200654908 [7.57e75], consumer: Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76])
│ │ │ └─ ← [Stop]
│ │ ├─ [0] VM::stopBroadcast()
│ │ │ └─ ← [Return]
│ │ └─ ← [Stop]
│ └─ ← [Return] Raffle: [0xDB8cFf278adCCF9E9b5da745B44E754fC4EE3C76], HelperConfig: [0x104fBc016F4bb334D775a19E8A6510109AC63E00]
├─ [0] VM::deal(player: [0x44E97aF4418b7a17AABD8090bEA0A471a366305C], 10000000000000000000 [1e19])
│ └─ ← [Return]
├─ [2508] HelperConfig::getConfig()
│ └─ ← [Return] NetworkConfig({ entranceFee: 10000000000000000 [1e16], interval: 30, vrfCoordinator: 0x34A1D3fff3958843C43aD80F30b94c510645C316, keyHash: 0x787d74caea10b2b357790d5b5247c2f63d1d91572a9846f780606e4d953677ae, subscriptionId: 0, callbackGasLimit: 500000 [5e5], linkToken: 0x90193C961A926261B756D1E5bb255e67ff9498A1, account: 0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38 })
└─ ← [Stop] |
Beta Was this translation helpful? Give feedback.
-
I solved it! Thanks to ChatGPT. You need to run |
Beta Was this translation helpful? Give feedback.
I solved it! Thanks to ChatGPT. You need to run
forge clean
to remove cached artifacts and the contract names will show up.