Skip to content

Commit

Permalink
fix: ERC20Detailed has 1 string length, rollback (7.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanagureev committed Dec 6, 2024
1 parent cf19a45 commit c79570d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/implementations/ChildGauge.vy
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@


from vyper.interfaces import ERC20
from vyper.interfaces import ERC20Detailed

implements: ERC20

interface ERC20Extended:
def symbol() -> String[32]: view

interface ERC1271:
def isValidSignature(_hash: bytes32, _signature: Bytes[65]) -> bytes32: view
Expand Down Expand Up @@ -177,7 +178,7 @@ def initialize(_lp_token: address, _root: address, _manager: address):

self.voting_escrow = Factory(msg.sender).voting_escrow()

symbol: String[32] = ERC20Detailed(_lp_token).symbol()
symbol: String[32] = ERC20Extended(_lp_token).symbol()
name: String[64] = concat("Curve.fi ", symbol, " Gauge Deposit")

self.name = name
Expand Down

0 comments on commit c79570d

Please sign in to comment.