Make UiTokenAmount::ui_amount a String (#15447)

* Make UiTokenAmount::ui_amount a String

* Fixup solana-tokens

* Ignore spl downstream-project
This commit is contained in:
Tyera Eulberg
2021-02-22 13:05:45 -07:00
committed by GitHub
parent f7c0b69fd4
commit d14374bc9f
11 changed files with 152 additions and 127 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"
}