Skip to content

Commit bdf547f

Browse files
authored
fix: use new lighter method (#105)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Related Issue Or Context <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Otherwise, describe context and motivation for change herre --> Closes: #<issue> ## How Has This Been Tested? Testing details. <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have ensured that all acceptance criteria (or expected behavior) from issue are met - [ ] I have updated the documentation locally and in docs. - [ ] I have added tests to cover my changes. - [ ] I have ensured that all the checks are passing and green, I've signed the CLA bot
1 parent a5f82f7 commit bdf547f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chains/evm/calls/consts/lighter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
var LighterABI, _ = abi.JSON(strings.NewReader(`[{
10-
"name": "withdraw",
10+
"name": "fulfillWithdraw",
1111
"type": "function",
1212
"stateMutability": "nonpayable",
1313
"inputs": [

chains/lighter/message/lighter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (h *LighterMessageHandler) verifyWithdrawal(tx *lighter.LighterTx, borrowAm
153153

154154
func (h *LighterMessageHandler) calldata(tx *lighter.LighterTx, borrowAmount *big.Int) ([]byte, error) {
155155
return consts.LighterABI.Pack(
156-
"withdraw",
156+
"fulfillWithdraw",
157157
common.HexToHash(tx.Hash),
158158
common.BytesToAddress(tx.Transfer.Memo[:20]),
159159
borrowAmount)

0 commit comments

Comments
 (0)