Skip to content

Commit

Permalink
fix: no need to update total_amount of udt (#1615)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Feb 5, 2024
1 parent 2cf82b2 commit af16b85
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion app/controllers/api/v1/udts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def update
symbol: params[:symbol],
full_name: params[:full_name],
decimal: params[:decimal],
total_amount: params[:total_amount],
description: params[:description],
operator_website: params[:operator_website],
icon_file: params[:icon_file],
Expand Down
7 changes: 0 additions & 7 deletions test/controllers/api/v1/udts_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
decimal: "8",
total_amount: "100000000000",
description: "The sUDT_ERC20_Proxy of Godwoken Test Token.",
operator_website: "https://udt.coin",
icon_file: "https://img.udt.img",
Expand All @@ -463,7 +462,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
assert_equal udt.symbol, "GWK"
assert_equal udt.full_name, "GodwokenToken on testnet_v1"
assert_equal udt.decimal, 8
assert_equal udt.total_amount, 100000000000
assert_equal udt.description,
"The sUDT_ERC20_Proxy of Godwoken Test Token."
assert_equal udt.operator_website, "https://udt.coin"
Expand Down Expand Up @@ -500,7 +498,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
decimal: "8",
total_amount: "100000000000",
description: "The sUDT_ERC20_Proxy of Godwoken Test Token.",
operator_website: "https://udt.coin",
icon_file: "https://img.udt.img",
Expand All @@ -521,7 +518,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
decimal: "8",
total_amount: "100000000",
description: "The sUDT_ERC20_Proxy of Godwoken Test Token.",
operator_website: "https://udt.coin",
icon_file: "https://img.udt.img",
Expand Down Expand Up @@ -553,7 +549,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
valid_put api_v1_udt_url("#{udt.type_hash}"), params: {
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
total_amount: "100000000",
token: "123456",
}

Expand All @@ -568,7 +563,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
valid_put api_v1_udt_url("#{udt.type_hash}"), params: {
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
total_amount: "100000000",
token: "123",
}

Expand All @@ -583,7 +577,6 @@ class UdtsControllerTest < ActionDispatch::IntegrationTest
valid_put api_v1_udt_url("#{udt.type_hash}"), params: {
symbol: "GWK",
full_name: "GodwokenToken on testnet_v1",
total_amount: "100000000",
token: "123456",
email: "[email protected]",
}
Expand Down

0 comments on commit af16b85

Please sign in to comment.