@@ -62,9 +62,9 @@ func newBackendWithNativeMinter(t *testing.T) *sim.Backend {
6262
6363// Helper functions to reduce test boilerplate
6464
65- func deployERC20NativeMinterTest (t * testing.T , b * sim.Backend , auth * bind.TransactOpts , initSupply * big.Int ) (common.Address , * ERC20NativeMinterTest ) {
65+ func deployERC20NativeMinter (t * testing.T , b * sim.Backend , auth * bind.TransactOpts , initSupply * big.Int ) (common.Address , * ERC20NativeMinter ) {
6666 t .Helper ()
67- addr , tx , contract , err := DeployERC20NativeMinterTest (auth , b .Client (), nativeminter .ContractAddress , initSupply )
67+ addr , tx , contract , err := DeployERC20NativeMinter (auth , b .Client (), nativeminter .ContractAddress , initSupply )
6868 require .NoError (t , err )
6969 testutils .WaitReceiptSuccessful (t , b , tx )
7070 return addr , contract
@@ -108,7 +108,7 @@ func TestNativeMinter(t *testing.T) {
108108 {
109109 name : "contract should not be able to mintdraw" ,
110110 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
111- tokenAddr , token := deployERC20NativeMinterTest (t , backend , admin , initSupply )
111+ tokenAddr , token := deployERC20NativeMinter (t , backend , admin , initSupply )
112112
113113 verifyRole (t , nativeMinter , tokenAddr , allowlist .NoRole )
114114
@@ -120,7 +120,7 @@ func TestNativeMinter(t *testing.T) {
120120 {
121121 name : "should be added to minter list" ,
122122 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
123- tokenAddr , _ := deployERC20NativeMinterTest (t , backend , admin , initSupply )
123+ tokenAddr , _ := deployERC20NativeMinter (t , backend , admin , initSupply )
124124
125125 verifyRole (t , nativeMinter , tokenAddr , allowlist .NoRole )
126126
@@ -132,7 +132,7 @@ func TestNativeMinter(t *testing.T) {
132132 {
133133 name : "admin should mintdraw" ,
134134 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
135- tokenAddr , token := deployERC20NativeMinterTest (t , backend , admin , initSupply )
135+ tokenAddr , token := deployERC20NativeMinter (t , backend , admin , initSupply )
136136
137137 setAsEnabled (t , backend , nativeMinter , admin , tokenAddr )
138138
@@ -155,7 +155,7 @@ func TestNativeMinter(t *testing.T) {
155155 {
156156 name : "minter should not mintdraw without tokens" ,
157157 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
158- tokenAddr , token := deployERC20NativeMinterTest (t , backend , admin , initSupply )
158+ tokenAddr , token := deployERC20NativeMinter (t , backend , admin , initSupply )
159159 minterAddr , minter := deployMinter (t , backend , admin , tokenAddr )
160160
161161 setAsEnabled (t , backend , nativeMinter , admin , tokenAddr )
@@ -173,7 +173,7 @@ func TestNativeMinter(t *testing.T) {
173173 {
174174 name : "should deposit for minter" ,
175175 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
176- tokenAddr , token := deployERC20NativeMinterTest (t , backend , admin , initSupply )
176+ tokenAddr , token := deployERC20NativeMinter (t , backend , admin , initSupply )
177177 minterAddr , minter := deployMinter (t , backend , admin , tokenAddr )
178178
179179 setAsEnabled (t , backend , nativeMinter , admin , tokenAddr )
@@ -209,7 +209,7 @@ func TestNativeMinter(t *testing.T) {
209209 {
210210 name : "minter should mintdraw" ,
211211 test : func (t * testing.T , backend * sim.Backend , nativeMinter * INativeMinter ) {
212- tokenAddr , token := deployERC20NativeMinterTest (t , backend , admin , initSupply )
212+ tokenAddr , token := deployERC20NativeMinter (t , backend , admin , initSupply )
213213 minterAddr , minter := deployMinter (t , backend , admin , tokenAddr )
214214
215215 setAsEnabled (t , backend , nativeMinter , admin , tokenAddr )
0 commit comments