|
|
@ -119,9 +119,9 @@ func TestWaitDeployedCornerCases(t *testing.T) { |
|
|
|
defer cancel() |
|
|
|
defer cancel() |
|
|
|
backend.SendTransaction(ctx, tx) |
|
|
|
backend.SendTransaction(ctx, tx) |
|
|
|
backend.Commit() |
|
|
|
backend.Commit() |
|
|
|
notContentCreation := errors.New("tx is not contract creation") |
|
|
|
notContractCreation := errors.New("tx is not contract creation") |
|
|
|
if _, err := bind.WaitDeployed(ctx, backend, tx); err.Error() != notContentCreation.Error() { |
|
|
|
if _, err := bind.WaitDeployed(ctx, backend, tx); err.Error() != notContractCreation.Error() { |
|
|
|
t.Errorf("error mismatch: want %q, got %q, ", notContentCreation, err) |
|
|
|
t.Errorf("error mismatch: want %q, got %q, ", notContractCreation, err) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Create a transaction that is not mined.
|
|
|
|
// Create a transaction that is not mined.
|
|
|
|