Skip to content

Commit af7ae36

Browse files
committed
remote higher level test
1 parent aff3672 commit af7ae36

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

chain/evm/provider/ctf_anvil_provider_test.go

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -296,46 +296,6 @@ func TestCTFAnvilChainProvider_InitializeErrors(t *testing.T) {
296296
func TestCTFAnvilChainProvider_SignerIntegration(t *testing.T) {
297297
t.Parallel()
298298

299-
t.Run("custom tick interval", func(t *testing.T) {
300-
t.Parallel()
301-
customKey := "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
302-
303-
var once sync.Once
304-
config := CTFAnvilChainProviderConfig{
305-
Once: &once,
306-
ConfirmFunctor: ConfirmFuncGeth(2*time.Minute, WithTickInterval(100*time.Millisecond)),
307-
DeployerTransactorGen: TransactorFromRaw(customKey),
308-
T: t,
309-
}
310-
311-
selector := uint64(13264668187771770619) // Chain ID 31337
312-
provider := NewCTFAnvilChainProvider(selector, config)
313-
314-
ctx, cancel := context.WithTimeout(t.Context(), 5*time.Minute)
315-
defer cancel()
316-
317-
blockchain, err := provider.Initialize(ctx)
318-
require.NoError(t, err)
319-
require.NotNil(t, blockchain)
320-
321-
// Verify the blockchain has the expected properties
322-
assert.Equal(t, selector, blockchain.ChainSelector())
323-
assert.Equal(t, "evm", blockchain.Family())
324-
325-
// Test that the deployer key is properly configured
326-
evmChain := blockchain.(evm.Chain)
327-
assert.NotNil(t, evmChain.DeployerKey)
328-
assert.NotNil(t, evmChain.SignHash)
329-
330-
// Test signing functionality
331-
testHash := make([]byte, 32) // Hash must be exactly 32 bytes
332-
copy(testHash, []byte("test message to sign"))
333-
signature, err := evmChain.SignHash(testHash)
334-
require.NoError(t, err)
335-
assert.NotEmpty(t, signature)
336-
assert.Len(t, signature, 65) // Standard Ethereum signature length
337-
})
338-
339299
t.Run("custom raw key integration", func(t *testing.T) {
340300
t.Parallel()
341301

0 commit comments

Comments
 (0)