Skip to content

Commit

Permalink
Add flow with transfer signature
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN authored and abizjak committed Jul 15, 2023
1 parent cda0717 commit ae00b87
Show file tree
Hide file tree
Showing 5 changed files with 580 additions and 674 deletions.
4 changes: 2 additions & 2 deletions concordium-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ quickcheck = {version = "1", optional = true }
getrandom = { version = "0.2", features = ["custom"], optional = true }

[dependencies.concordium-contracts-common]
path = "../concordium-contracts-common/concordium-contracts-common"
version = "7.0"
path = "../../../LocalTestingLibrary/concordium-smart-contract-tools/concordium-base/concordium-contracts-common/concordium-contracts-common"
version = "7.1"
default-features = false
features = ["smart-contract"]

Expand Down
6 changes: 3 additions & 3 deletions concordium-std/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,14 +749,14 @@ pub enum Signature {
/// credential indexes, and the inner map maps key indices to [`Signature`]s.
pub struct AccountSignatures {
#[concordium(size_length = 1)]
pub(crate) sigs: crate::collections::BTreeMap<CredentialIndex, CredentialSignatures>,
pub sigs: crate::collections::BTreeMap<CredentialIndex, CredentialSignatures>,
}

#[derive(crate::Serialize, Debug, SchemaType)]
#[concordium(transparent)]
pub(crate) struct CredentialSignatures {
pub struct CredentialSignatures {
#[concordium(size_length = 1)]
sigs: crate::collections::BTreeMap<KeyIndex, Signature>,
pub sigs: crate::collections::BTreeMap<KeyIndex, Signature>,
}

/// A type representing the attributes, lazily acquired from the host.
Expand Down
4 changes: 4 additions & 0 deletions examples/cis3-nft-sponsored-txs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ crypto-primitives = ["concordium-std/crypto-primitives"]
[dependencies]
concordium-std = {path = "../../concordium-std", default-features = false}
concordium-cis2 = {path = "../../concordium-cis2", default-features = false}
ed25519-dalek = "1.0.1"

[dev-dependencies]
concordium-smart-contract-testing = {path = "../../../../LocalTestingLibrary/concordium-smart-contract-tools/concordium-smart-contract-testing"}

[lib]
crate-type=["cdylib", "rlib"]
Expand Down
Loading

0 comments on commit ae00b87

Please sign in to comment.