threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

🐞 [Bug]: Transfer TFT By Twin ID Input validation accepts decimal value without error #3469

Open 0oM4R opened 1 month ago

0oM4R commented 1 month ago

Is there an existing issue for this?

which package/s did you face the problem with?

Dashboard

What happened?

i tried to enter 1525.32 and it transferred to twin 1525

Test case: TC2240 : https://app.testlodge.com/a/26076/projects/40893/runs/757884/run?run_suite_id=1250709&selected=33254452

Steps To Reproduce

No response

which network/s did you face the problem on?

Dev

version

2.5.0

Twin ID/s

No response

Node ID/s

No response

Farm ID/s

No response

Contract ID/s

No response

Relevant screenshots/screen records

image

Relevant log output

.
0oM4R commented 3 weeks ago

add validation to the twin id field to accept integer only.

samaradel commented 3 weeks ago

Work Completed:

Add validation on twin ID input as it should accept only integers.

A-Harby commented 1 week ago

Verified, Devnet 038404b.

The Twin ID validation is showing an error for any incorrect twin ID.

image

TC2240 - Transfer TFT By Twin ID Input validation