Revert "Make UiTokenAmount::ui_amount a String (#15447)" (#15542)

This reverts commit d14374bc9f.
This commit is contained in:
Tyera Eulberg
2021-02-25 14:53:40 -07:00
committed by GitHub
parent d521dfe63c
commit 1ad2c9f741
11 changed files with 127 additions and 152 deletions

View File

@@ -888,7 +888,7 @@ mod test {
"mint": keys[3].to_string(),
"authority": keys[0].to_string(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}
@@ -920,7 +920,7 @@ mod test {
"multisigAuthority": keys[5].to_string(),
"signers": keys[0..2].iter().map(|key| key.to_string()).collect::<Vec<String>>(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}
@@ -952,7 +952,7 @@ mod test {
"delegate": keys[3].to_string(),
"owner": keys[0].to_string(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}
@@ -984,7 +984,7 @@ mod test {
"multisigOwner": keys[5].to_string(),
"signers": keys[0..2].iter().map(|key| key.to_string()).collect::<Vec<String>>(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}
@@ -1014,7 +1014,7 @@ mod test {
"account": keys[2].to_string(),
"mintAuthority": keys[0].to_string(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}
@@ -1044,7 +1044,7 @@ mod test {
"mint": keys[2].to_string(),
"authority": keys[0].to_string(),
"tokenAmount": {
"uiAmount": "0.42",
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
}